Age | Commit message (Collapse) | Author |
|
These checks are only relevant for python pre-2.2.
* wqflask/utility/svg.py: Remove python pre-2.2 checks.
|
|
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
|
|
|
|
|
|
|
|
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
|
|
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>
|
|
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib>
|
|
Run `2to3-3.8 -f idioms -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-idioms>
|
|
Run `2to3-3.8 -f raise -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-raise>
|
|
Run `2to3-3.8 -f ne -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-ne>
|
|
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>
|
|
* 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 .`
|
|
* 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)
````
|
|
* wqflask/utility/svg.py: Use "!=". The operator, "<>" is removed in Python3
|
|
|
|
* Change the raise statement to use an Exception object rather than
using a string for compatibility with Python3.
|
|
|
|
|
|
|