~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Lib/re.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
316
316
            if i == j:
317
317
                break
318
318
            action = self.lexicon[m.lastindex-1][1]
319
 
            if callable(action):
 
319
            if hasattr(action, '__call__'):
320
320
                self.match = m
321
321
                action = action(self, m.group())
322
322
            if action is not None: