changeset 7616:b9bd6f789633

use enumerate instead of zip
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 09 Jan 2009 01:37:54 +0100
parents ab39d1813e51
children 7b554c6ad390
files hgext/patchbomb.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]