diff mercurial/patch.py @ 3468:0e68608bd11d

use xrange instead of range
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Thu, 19 Oct 2006 14:16:51 +0200
parents 2d35a8d2b32d
children da3ee7ca620f
line wrap: on
line diff
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -220,7 +220,7 @@ def dogitpatch(patchname, gitpatches, cw
     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