aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/svg.py
AgeCommit message (Collapse)Author
2021-04-30autopep8: Run autopep8 100 times with target rulesBonfaceKilz
Rules used are: E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,E242, E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306, E401,E501,E70,E701,W291,W292,W293,W391,W504,E101,E11,E121, E122,E123,E124,E125,E126,E127,E128,E129,E131,E133
2021-04-30autopep8: Fix W504BonfaceKilz
2021-04-30autopep8: Fix E501BonfaceKilz
2021-04-30autopep8: Fix E301,E302,E303,E304,E305,E306BonfaceKilz
2021-04-30autopep8: Fix E20-E27BonfaceKilz
Run: python -m autopep8 --in-place --recrusive ./ --select\ E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,\ E242,E251,E252,E26,E265,E266,E27 -p 3
2020-08-20Handle module renames in the standard libraryBonfaceKilz
Run: ``` 2to3-3.8 -f imports -w . && \ 2to3-3.8 -f imports2 -w . ``` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-imports> and <https://docs.python.org/2/library/2to3.html#2to3fixer-imports2>
2020-08-19Remove extra whitespace(or add it) from comma separated itemsBonfaceKilz
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib>
2020-08-19Make Python more idiomaticBonfaceKilz
Run `2to3-3.8 -f idioms -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-idioms>
2020-08-19Wrap `raise` statements in parenthesisBonfaceKilz
Run `2to3-3.8 -f raise -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-raise>
2020-08-19Convert the old not-equal syntax, <>, to !=BonfaceKilz
Run `2to3-3.8 -f ne -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-ne>
2020-08-19Fix dictionary iteration methodsBonfaceKilz
Run `2to3-3.8 -f dict -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-dict> and <https://stackoverflow.com/questions/17695456/why-does-python-3-need-dict-items-to-be-wrapped-with-list>
2020-08-19Remove erroneous `if .. else` branchBonfaceKilz
* wqflask/utility/svg.py [roct, ellipse, SVGelement]: Raise only a single value error if either height or width is not defined. Fixes parsing error when running `2to3-3.8 -f apply -w .`
2020-08-18Apply pep8BonfaceKilz
* wqflask/utility/svg.py: Apply pep8 to fix indentation error when running `2to3-3.8 -w .`: ```` RefactoringTool: Can't parse ./wqflask/utility/svg.py: IndentationError: unindent does not match any outer indentation level (<tokenize>, line 403) ````
2020-08-18Replace "<>" with "!="BonfaceKilz
* wqflask/utility/svg.py: Use "!=". The operator, "<>" is removed in Python3
2020-08-18Wrap print statements in parenthesesBonfaceKilz
2018-03-22Change raise statementMuriithi Frederick Muriuki
* Change the raise statement to use an Exception object rather than using a string for compatibility with Python3.
2016-06-18Changed file permssions to non-executablePjotr Prins
2012-06-05Ran reindent.py recursively on wqflask directorySam Ockman
2012-05-24Trying to get stuff working under new structureSam Ockman