[Python-checkins] r54103 - sandbox/trunk/2to3/fixes/fix_except.py
collin.winter
python-checkins at python.org
Sat Mar 3 04:27:44 CET 2007
Author: collin.winter
Date: Sat Mar 3 04:27:43 2007
New Revision: 54103
Modified:
sandbox/trunk/2to3/fixes/fix_except.py
Log:
Style cleanup.
Modified: sandbox/trunk/2to3/fixes/fix_except.py
==============================================================================
--- sandbox/trunk/2to3/fixes/fix_except.py (original)
+++ sandbox/trunk/2to3/fixes/fix_except.py Sat Mar 3 04:27:43 2007
@@ -30,8 +30,7 @@
from fixes.macros import Assign, Attr, Name
def find_excepts(nodes):
- for i in range(len(nodes)):
- n = nodes[i]
+ for i, n in enumerate(nodes):
if isinstance(n, pytree.Node):
if n.children[0].value == 'except':
yield (n, nodes[i+2])
More information about the Python-checkins
mailing list