mirror of
https://github.com/python/cpython.git
synced 2025-08-29 21:25:01 +00:00
Merge 3.2
This commit is contained in:
commit
aabbda5354
27 changed files with 51 additions and 54 deletions
|
@ -325,7 +325,7 @@ class Scanner:
|
|||
if i == j:
|
||||
break
|
||||
action = self.lexicon[m.lastindex-1][1]
|
||||
if hasattr(action, "__call__"):
|
||||
if callable(action):
|
||||
self.match = m
|
||||
action = action(self, m.group())
|
||||
if action is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue