flake8
-
rbtools/commands/status.py (Diff revision 1)
Review Request #9153 — Created Aug. 28, 2017 and submitted
The
rbt status
command now supports two new flags:
--format
for specifying a custom output format instead of a-z
which makes the custom-formatted lines nul-terminated.Used this with a fish completion for
rbt land -r
andrbt post -r
.
Posted and update to this change using said completion.
Description | From | Last Updated |
---|---|---|
W391 blank line at end of file |
reviewbot | |
Period at the end. That said, I don't know that we need docs for this inner function. Maybe we could … |
david | |
Instead of setting this as a variable and then printing, how about just print(format % info, end=end)? |
david | |
F841 local variable 'end' is assigned to but never used |
reviewbot |
Testing Done: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
|||||||||
Diff: |
Revision 2 (+79 -20) |
rbtools/commands/status.py (Diff revision 2) |
---|
Period at the end. That said, I don't know that we need docs for this inner function.
Maybe we could even use a lambda and stick it inline?
rbtools/commands/status.py (Diff revision 2) |
---|
Instead of setting this as a variable and then printing, how about just
print(format % info, end=end)
?
Addressed David's issues
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+68 -20) |
rbtools/commands/status.py (Diff revision 3) |
---|
F841 local variable 'end' is assigned to but never used
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 4 (+68 -20) |