mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Remove the use of callable() in re to silence warnings under -3.
This commit is contained in:
parent
33ede08cdd
commit
d9636e17cc
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ class Scanner:
|
|||
if i == j:
|
||||
break
|
||||
action = self.lexicon[m.lastindex-1][1]
|
||||
if callable(action):
|
||||
if hasattr(action, '__call__'):
|
||||
self.match = m
|
||||
action = action(self, m.group())
|
||||
if action is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue