summaryrefslogtreecommitdiff
path: root/subcmds/overview.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-09-24 12:15:13 +0900
committerGustaf Lundh <gustaf.lundh@sonymobile.com>2012-10-09 12:45:30 +0200
commit8a68ff96057ec58e524a3e41a2d8dca7b5d016bc (patch)
tree22f6971e8d3c4a90d11d3704602d073a852328b4 /subcmds/overview.py
parente3b1c45aebed329cbc9ad172b1d8e812cf208117 (diff)
downloadgit-repo-8a68ff96057ec58e524a3e41a2d8dca7b5d016bc.tar.gz
git-repo-8a68ff96057ec58e524a3e41a2d8dca7b5d016bc.zip
Coding style cleanup
Fix the following issues reported by pylint: C0321: More than one statement on a single line W0622: Redefining built-in 'name' W0612: Unused variable 'name' W0613: Unused argument 'name' W0102: Dangerous default value 'value' as argument W0105: String statement has no effect Also fixed a few cases of inconsistent indentation. Change-Id: Ie0db839e7c57d576cff12d8c055fe87030d00744
Diffstat (limited to 'subcmds/overview.py')
-rw-r--r--subcmds/overview.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/subcmds/overview.py b/subcmds/overview.py
index 96fa93d8e..a509bd9a8 100644
--- a/subcmds/overview.py
+++ b/subcmds/overview.py
@@ -38,16 +38,16 @@ are displayed.
help="Consider only checked out branches")
def Execute(self, opt, args):
- all = []
+ all_branches = []
for project in self.GetProjects(args):
br = [project.GetUploadableBranch(x)
for x in project.GetBranches().keys()]
br = [x for x in br if x]
if opt.current_branch:
br = [x for x in br if x.name == project.CurrentBranch]
- all.extend(br)
+ all_branches.extend(br)
- if not all:
+ if not all_branches:
return
class Report(Coloring):
@@ -55,13 +55,13 @@ are displayed.
Coloring.__init__(self, config, 'status')
self.project = self.printer('header', attr='bold')
- out = Report(all[0].project.config)
+ out = Report(all_branches[0].project.config)
out.project('Projects Overview')
out.nl()
project = None
- for branch in all:
+ for branch in all_branches:
if project != branch.project:
project = branch.project
out.nl()