Author: Alex Gaynor <alex.gay...@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) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit