From: Andrew M. Kuchling Date: Sun, 18 Jun 2000 20:27:10 +0000 (+0000) Subject: Fix bug when the replacement template is a callable object X-Git-Tag: v2.0b1~1476 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8d52af54bb90459d941ecdd683bc8416bc47b48;p=thirdparty%2FPython%2Fcpython.git Fix bug when the replacement template is a callable object --- diff --git a/Lib/sre.py b/Lib/sre.py index 455cd2785e8f..637b776b2ea5 100644 --- a/Lib/sre.py +++ b/Lib/sre.py @@ -90,7 +90,7 @@ def _expand(match, template): def _subn(pattern, template, string, count=0): # internal: pattern.subn implementation hook if callable(template): - filter = callable + filter = template else: # FIXME: prepare template def filter(match, template=template):