[Python-checkins] CVS: python/dist/src/Lib sre.py,1.5,1.6
A.M. Kuchling
python-dev@python.org
Sun, 18 Jun 2000 13:27:12 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv817
Modified Files:
sre.py
Log Message:
Fix bug when the replacement template is a callable object
Index: sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** sre.py 2000/06/01 17:39:12 1.5
--- sre.py 2000/06/18 20:27:10 1.6
***************
*** 91,95 ****
# internal: pattern.subn implementation hook
if callable(template):
! filter = callable
else:
# FIXME: prepare template
--- 91,95 ----
# internal: pattern.subn implementation hook
if callable(template):
! filter = template
else:
# FIXME: prepare template