Fixed a few PEP-8 issues.
Review Request #6638 — Created Nov. 23, 2014 and submitted
Since some issues have slipped past ReviewBot (plus there are a lot we never fixed). This change fixes almost everything ouside the modules, with the exception of a few things PEP-8 considers as problems but are actually preferred.
Ran unit tests, and pep8.
Description | From | Last Updated |
---|---|---|
I'd rather not do this. There's no real point in practice. Same for all other asserts on imports. |
chipx86 | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
This just makes the code more error-prone and less readable. I'd prefer you undo it. |
chipx86 | |
There's a # in the comment now. |
chipx86 | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
I think the better fix (since this has a character in it) would be to prefix this line with 'r' … |
david | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot |
-
ez_setup.py isn't maintained by us. We should revert all changes to it.
By the way, if you're not already, run ./contrib/internal/run-pyflakes.py instead of just pyflakes.
-
-
-
- Summary:
-
Fixed a ton of PEP8 issues, and a few Pyflakes issues.Fixed a ton of PEP8 issues.
- Description:
-
~ Since some issues have slipped past ReviewBot (plus there are a lot we never fixed). This change fixes almost everything ouside the modules, with the exception of a few things PEP-8 considers as problems but are actually preferred. Pyflakes also complains about unused imports, the keyword assert is used to confirm that it should be there.
~ Since some issues have slipped past ReviewBot (plus there are a lot we never fixed). This change fixes almost everything ouside the modules, with the exception of a few things PEP-8 considers as problems but are actually preferred.
- Testing Done:
-
~ Ran unit tests, pep8, and pyflakes.
~ Ran unit tests, and pep8.
- Commit:
-
b611bc8d506ecf4350430f18bb3d5e60556c436b2d4d80b74b121a2b0fa59b79abaf4392355298df
-
Tool: PEP8 Style Checker Processed Files: setup.py reviewboard/settings.py reviewboard/staticbundles.py Tool: Pyflakes Processed Files: setup.py reviewboard/settings.py reviewboard/staticbundles.py
-
-
-
-
- Summary:
-
Fixed a ton of PEP8 issues.Fixed a few of PEP8 issues.
- Commit:
-
2d4d80b74b121a2b0fa59b79abaf4392355298dfe391328bd9a4a3d0e90a0a58064c43c16dfff192
- Diff:
-
Revision 3 (+9 -8)
-
Tool: Pyflakes Processed Files: setup.py reviewboard/settings.py Tool: PEP8 Style Checker Processed Files: setup.py reviewboard/settings.py
-
-
-
-
- Commit:
-
e391328bd9a4a3d0e90a0a58064c43c16dfff192423f6efdac5b450a151179632ff4460993e9e90e
- Diff:
-
Revision 4 (+9 -8)