diff options
author | David Pursehouse <dpursehouse@collab.net> | 2017-07-10 22:42:22 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2017-07-10 23:26:04 +0000 |
commit | 3bcd30545e58bc5d6932c9390e8909d57a836617 (patch) | |
tree | 287bcc992e76ced897981d225e5efe8f399c9693 /subcmds/stage.py | |
parent | 224a31a765eb943443640301a715d2d4eb005b79 (diff) | |
download | git-repo-3bcd30545e58bc5d6932c9390e8909d57a836617.tar.gz |
Fix "list comprehension redefines 'x'" warnings from pyflakes
$ git ls-files | grep py$ | xargs pyflakes
subcmds/stage.py:101: list comprehension redefines 'p' from line 63
subcmds/sync.py:784: list comprehension redefines 'p' from line 664
subcmds/upload.py:467: list comprehension redefines 'avail' from line 454
Change-Id: Ia65d1a72ed185ab3357e1a91ed4450c719e75a7c
Diffstat (limited to 'subcmds/stage.py')
-rw-r--r-- | subcmds/stage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/stage.py b/subcmds/stage.py index 28849764..9d354268 100644 --- a/subcmds/stage.py +++ b/subcmds/stage.py | |||
@@ -60,8 +60,8 @@ The '%prog' command stages files to prepare the next commit. | |||
60 | out.nl() | 60 | out.nl() |
61 | 61 | ||
62 | for i in range(len(all_projects)): | 62 | for i in range(len(all_projects)): |
63 | p = all_projects[i] | 63 | project = all_projects[i] |
64 | out.write('%3d: %s', i + 1, p.relpath + '/') | 64 | out.write('%3d: %s', i + 1, project.relpath + '/') |
65 | out.nl() | 65 | out.nl() |
66 | out.nl() | 66 | out.nl() |
67 | 67 | ||