[pypy-commit] pypy default: More idiomatic.

alex_gaynor noreply at buildbot.pypy.org
Sat Jun 23 20:07:38 CEST 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r55789:a85444719f0b
Date: 2012-06-23 11:00 -0700
http://bitbucket.org/pypy/pypy/changeset/a85444719f0b/

Log:	More idiomatic.

diff --git a/pypy/rlib/parsing/parsing.py b/pypy/rlib/parsing/parsing.py
--- a/pypy/rlib/parsing/parsing.py
+++ b/pypy/rlib/parsing/parsing.py
@@ -113,8 +113,7 @@
             for expansion in rule.expansions:
                 curr = i
                 children = []
-                for j in range(len(expansion)):
-                    subsymbol = expansion[j]
+                for subsymbol in expansion:
                     node, next, error2 = self.match_symbol(curr, subsymbol)
                     if node is None:
                         error = combine_errors(error, error2)


More information about the pypy-commit mailing list