-
-
-
-
-
-
extension/reviewbotext/models.py (Diff revision 1) Do we want this to be
@py2_unicode_compatiable
(so__str__
also works? -
extension/reviewbotext/models.py (Diff revision 1) You can add an
Attributes
section, likeArgs
in method definitions.e.g.
"""... Attributes: tool_options (type of tool_options): Description """
-
-
extension/reviewbotext/models.py (Diff revision 1) Do we want this to be
@py2_unicode_compatiable
(so__str__
also works? -
-
extension/reviewbotext/models.py (Diff revision 1) Do we want this to be
@py2_unicode_compatiable
(so__str__
also works? -
-
extension/reviewbotext/models.py (Diff revision 1) Do we want this to be
@py2_unicode_compatiable
(so__str__
also works?
Do a bunch of clean-up work for Review Bot.
Review Request #8423 — Created Sept. 20, 2016 and submitted
In preparation for some modernization, I'm doing a little bit of clean-up (and
familiarizing myself with the codebase). This change primarily adds
unicode_literals
and fixes up docstrings, though there are a few places where
I've made things more idiomatic or simpler.
Verified that the extension loaded correctly. Looked at the various forms in
the admin UI.
Description | From | Last Updated |
---|---|---|
Blank line between these. |
brennie | |
Blank line between these. |
brennie | |
Blank line ebtween these. |
brennie | |
Can we pull this out into a variable? |
brennie | |
Do we want this to be @py2_unicode_compatiable (so __str__ also works? |
brennie | |
You can add an Attributes section, like Args in method definitions. e.g. """... Attributes: tool_options (type of tool_options): Description """ |
brennie | |
Blank line between these. |
brennie | |
Do we want this to be @py2_unicode_compatiable (so __str__ also works? |
brennie | |
Blank line between these. |
brennie | |
Do we want this to be @py2_unicode_compatiable (so __str__ also works? |
brennie | |
Blank line between these. |
brennie | |
Do we want this to be @py2_unicode_compatiable (so __str__ also works? |
brennie | |
Exception as e? Do we want to limit to Python 2.6+ ? |
brennie |
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+327 -180) |
-
Tool: PEP8 Style Checker Processed Files: extension/reviewbotext/extension.py extension/reviewbotext/admin_urls.py extension/reviewbotext/managers.py extension/reviewbotext/__init__.py extension/reviewbotext/admin.py extension/reviewbotext/forms.py extension/reviewbotext/handlers.py extension/reviewbotext/resources.py extension/reviewbotext/models.py Ignored Files: extension/setup.cfg extension/reviewbotext/templates/admin/reviewbotext/tool/change_form.html Tool: Pyflakes Processed Files: extension/reviewbotext/extension.py extension/reviewbotext/admin_urls.py extension/reviewbotext/managers.py extension/reviewbotext/__init__.py extension/reviewbotext/admin.py extension/reviewbotext/forms.py extension/reviewbotext/handlers.py extension/reviewbotext/resources.py extension/reviewbotext/models.py Ignored Files: extension/setup.cfg extension/reviewbotext/templates/admin/reviewbotext/tool/change_form.html
-
-
extension/reviewbotext/forms.py (Diff revision 2) Exception as e
?
Do we want to limit to Python 2.6+ ?