This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: rbtools/clients/perforce.py Ignored Files:
Fix UnboundLocalError when posting Perforce paths.
Review Request #5834 — Created May 16, 2014 and submitted
Posting Perforce paths using
rbt postwould sometimes result in an
UnboundLocalError because the local variable
new_pathwas referenced before
assignment. This is a trivial fix, changing the argument from
- Ran unit tests.
rbt post //p4-test2/foo@2,@3(which previously resulted in the error),
and saw that the review request was created successfully.
This is a review from Review Bot. Tool: Pyflakes Processed Files: rbtools/clients/perforce.py Ignored Files: