diff -r df7202f6887c -r 0e68608bd11d mercurial/patch.py --- a/mercurial/patch.py Thu Oct 19 14:03:41 2006 +0200 +++ b/mercurial/patch.py Thu Oct 19 14:16:51 2006 +0200 @@ -220,7 +220,7 @@ tmpfp = os.fdopen(fd, 'w') try: - for i in range(len(gitpatches)): + for i in xrange(len(gitpatches)): p = gitpatches[i] if not p.copymod and not p.binary: continue