use enumerate instead of zip
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 09 Jan 2009 01:37:54 +0100
changeset 7616 b9bd6f789633
parent 7615 ab39d1813e51
child 7617 7b554c6ad390
use enumerate instead of zip
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Fri Jan 09 01:36:35 2009 +0100
+++ b/hgext/patchbomb.py	Fri Jan 09 01:37:54 2009 +0100
@@ -297,7 +297,7 @@
                  % len(patches))
 
         name = None
-        for p, i in zip(patches, xrange(len(patches))):
+        for i, p in enumerate(patches):
             jumbo.extend(p)
             if patchnames:
                 name = patchnames[i]