Remove the use of callable() in re to silence warnings under -3.

This commit is contained in:
Brett Cannon 2008-08-04 21:07:59 +00:00
parent 33ede08cdd
commit d9636e17cc
1 changed files with 1 additions and 1 deletions

View File

@ -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: