-
-
rbtools/commands/post.py (Diff revision 1) Col: 27 E127 continuation line over-indented for visual indent
-
rbtools/commands/post.py (Diff revision 1) Col: 23 E127 continuation line over-indented for visual indent
Use "rbt" instead of "rb" for base command.
Review Request #3727 — Created Jan. 6, 2013 and submitted
Information | |
---|---|
smacleod | |
RBTools | |
api | |
Reviewers | |
rbtools | |
This work is on top of John Sintal's work on several commands. Once This has been reviewed, both will be pushed together. The command files have not been modified, just renamed. Use "rbt" instead of "rb" for base command. The base command "rb" conflicted with another package, so to avoid problems we will now use "rbt" instead. I refactored things a bit to make changing this name easier in the future. Add Steven MacLeod and John Sintal to AUTHORS Remove unused files. This removes a number of unused command and api files which have been sitting around. It's possible some of the logic present in the command files could be useful in the future, but the implementation details would need to be changed drastically.
Description | From | Last Updated |
---|---|---|
Can you use 'f' instead of 'opened_file"? It's more common. |
|
|
Two blank lines. |
|
|
The """ should be on the next line. |
|
|
Is there any need to store these in self? |
|
|
Can just be: if not diff: Or maybe just "if diff" and reverse the two clauses. |
|
|
It's possible that an ImportError is due to something successfully imported being unable to import something else. A stack trace … |
|
|
This feels like a hack, and possibly a bad assumption. We should specifically get the latest diff, not assume total_results … |
|
|
We should call diffs.get_item(patch_id) only once. |
|
|
Too much of a mix of imports/froms |
|
|
Col: 27 E127 continuation line over-indented for visual indent |
![]() |
|
Probably no need to say "the web interface," because the command line would suffice too. |
|
|
Should explicitly say "review request" instead of "request" |
|
|
Col: 23 E127 continuation line over-indented for visual indent |
![]() |
|
Look at the equivalent code in post-review. I believe that this code was just recently changed to handle some stdout/stderr … |
|
|
The 'pass' is not needed. |
|
|
Any reason to store in self? |
|
|
Col: 27 E127 continuation line over-indented for visual indent |
![]() |
|
Col: 23 E127 continuation line over-indented for visual indent |
![]() |

-
-
rbtools/commands/attach.py (Diff revision 1) Can you use 'f' instead of 'opened_file"? It's more common.
-
-
-
-
rbtools/commands/diff.py (Diff revision 1) Can just be: if not diff: Or maybe just "if diff" and reverse the two clauses.
-
rbtools/commands/main.py (Diff revision 1) It's possible that an ImportError is due to something successfully imported being unable to import something else. A stack trace might be helpful here. We may want to use Python logging for such things.
-
rbtools/commands/patch.py (Diff revision 1) This feels like a hack, and possibly a bad assumption. We should specifically get the latest diff, not assume total_results is numerically the same as the latest ID.
-
-
-
rbtools/commands/post.py (Diff revision 1) Probably no need to say "the web interface," because the command line would suffice too.
-
rbtools/commands/post.py (Diff revision 1) Should explicitly say "review request" instead of "request"
-
rbtools/commands/post.py (Diff revision 1) Look at the equivalent code in post-review. I believe that this code was just recently changed to handle some stdout/stderr issues.
-
-

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: rbtools/commands/main.py rbtools/commands/__init__.py rbtools/commands/diff.py rbtools/commands/patch.py rbtools/commands/post.py rbtools/commands/attach.py rbtools/commands/publish.py setup.py rbtools/commands/close.py Ignored Files: rbtools/api/serverinterface.py rbtools/api/settings.py rbtools/commands/rbinfo.py rbtools/commands/rbinfov2.py rbtools/knownissues.txt rbtools/commands/rbattach.py rbtools/commands/rbupload.py rbtools/commands/rb.py rbtools/commands/utils.py rbtools/commands/tests.py rbtools/commands/rbdiff.py rbtools/commands/rbcreate.py rbtools/commands/rbconfig.py rbtools/commands/rbpatch.py AUTHORS rbtools/commands/rbpublish.py rbtools/commands/resource-browser.py rbtools/commands/rbopen.py rbtools/commands/rbclose.py rbtools/commands/rbpost.py
-
rbtools/commands/post.py (Diff revision 2) Col: 27 E127 continuation line over-indented for visual indent
-
rbtools/commands/post.py (Diff revision 2) Col: 23 E127 continuation line over-indented for visual indent