diff options
| -rw-r--r-- | git_config.py | 2 | ||||
| -rwxr-xr-x | main.py | 2 | ||||
| -rwxr-xr-x | repo | 2 | ||||
| -rw-r--r-- | subcmds/stage.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/git_config.py b/git_config.py index 6589b193..645c97ab 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: |
| @@ -87,7 +87,7 @@ class _Repo(object): | |||
| 87 | name = None | 87 | name = None |
| 88 | glob = [] | 88 | glob = [] |
| 89 | 89 | ||
| 90 | for i in xrange(0, len(argv)): | 90 | for i in range(len(argv)): |
| 91 | if not argv[i].startswith('-'): | 91 | if not argv[i].startswith('-'): |
| 92 | name = argv[i] | 92 | name = argv[i] |
| 93 | if i > 0: | 93 | if i > 0: |
| @@ -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() |
