Commits

Alex Gaynor  committed a854447

More idiomatic.

  • Participants
  • Parent commits f4ed41f

Comments (0)

Files changed (1)

File pypy/rlib/parsing/parsing.py

             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)