From 5c6eeac8f0350fd6b14cf226ffcff655f1dd9582 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 11 Oct 2012 16:44:48 +0900 Subject: More coding style cleanup Fixing more issues found with pylint. Some that were supposed to have been fixed in the previous sweep (Ie0db839e) but were missed: C0321: More than one statement on a single line W0622: Redefining built-in 'name' And some more: W0631: Using possibly undefined loop variable 'name' W0223: Method 'name' is abstract in class 'name' but is not overridden W0231: __init__ method from base class 'name' is not called Change-Id: Ie119183708609d6279e973057a385fde864230c3 --- subcmds/abandon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subcmds/abandon.py') diff --git a/subcmds/abandon.py b/subcmds/abandon.py index 42abb2ff..e17ab2b6 100644 --- a/subcmds/abandon.py +++ b/subcmds/abandon.py @@ -42,10 +42,10 @@ It is equivalent to "git branch -D ". nb = args[0] err = [] success = [] - all = self.GetProjects(args[1:]) + all_projects = self.GetProjects(args[1:]) - pm = Progress('Abandon %s' % nb, len(all)) - for project in all: + pm = Progress('Abandon %s' % nb, len(all_projects)) + for project in all_projects: pm.update() status = project.AbandonBranch(nb) -- cgit v1.2.3-54-g00ecf