From e8d52af54bb90459d941ecdd683bc8416bc47b48 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sun, 18 Jun 2000 20:27:10 +0000 Subject: [PATCH] Fix bug when the replacement template is a callable object --- Lib/sre.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/sre.py b/Lib/sre.py index 455cd2785e8..637b776b2ea 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):