summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--git_config.py2
-rwxr-xr-xmain.py2
-rwxr-xr-xrepo2
-rw-r--r--subcmds/stage.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/git_config.py b/git_config.py
index ea782a11..f60893ee 100644
--- a/git_config.py
+++ b/git_config.py
@@ -168,7 +168,7 @@ class GitConfig(object):
168 elif old != value: 168 elif old != value:
169 self._cache[key] = list(value) 169 self._cache[key] = list(value)
170 self._do('--replace-all', name, value[0]) 170 self._do('--replace-all', name, value[0])
171 for i in xrange(1, len(value)): 171 for i in range(1, len(value)):
172 self._do('--add', name, value[i]) 172 self._do('--add', name, value[i])
173 173
174 elif len(old) != 1 or old[0] != value: 174 elif len(old) != 1 or old[0] != value:
diff --git a/main.py b/main.py
index 5e575c56..41c3ec6c 100755
--- a/main.py
+++ b/main.py
@@ -88,7 +88,7 @@ class _Repo(object):
88 name = None 88 name = None
89 glob = [] 89 glob = []
90 90
91 for i in xrange(0, len(argv)): 91 for i in range(len(argv)):
92 if not argv[i].startswith('-'): 92 if not argv[i].startswith('-'):
93 name = argv[i] 93 name = argv[i]
94 if i > 0: 94 if i > 0:
diff --git a/repo b/repo
index 1b809087..80eff8ff 100755
--- a/repo
+++ b/repo
@@ -606,7 +606,7 @@ def _ParseArguments(args):
606 opt = _Options() 606 opt = _Options()
607 arg = [] 607 arg = []
608 608
609 for i in xrange(0, len(args)): 609 for i in range(len(args)):
610 a = args[i] 610 a = args[i]
611 if a == '-h' or a == '--help': 611 if a == '-h' or a == '--help':
612 opt.help = True 612 opt.help = True
diff --git a/subcmds/stage.py b/subcmds/stage.py
index 2ec48069..1ff85880 100644
--- a/subcmds/stage.py
+++ b/subcmds/stage.py
@@ -58,7 +58,7 @@ The '%prog' command stages files to prepare the next commit.
58 out.header(' %s', 'project') 58 out.header(' %s', 'project')
59 out.nl() 59 out.nl()
60 60
61 for i in xrange(0, len(all_projects)): 61 for i in range(len(all_projects)):
62 p = all_projects[i] 62 p = all_projects[i]
63 out.write('%3d: %s', i + 1, p.relpath + '/') 63 out.write('%3d: %s', i + 1, p.relpath + '/')
64 out.nl() 64 out.nl()