commit | e8d52af54bb90459d941ecdd683bc8416bc47b48 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sun Jun 18 20:27:10 2000 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sun Jun 18 20:27:10 2000 +0000 |
tree | a8d60446bdf499c157d4110a708de0d3625d954f | |
parent | ea34a84e543ecf0a05ea34fe5b7d84cb1bcd437d [diff] [blame] |
Fix bug when the replacement template is a callable object
diff --git a/Lib/sre.py b/Lib/sre.py index 455cd27..637b776 100644 --- a/Lib/sre.py +++ b/Lib/sre.py
@@ -90,7 +90,7 @@ 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):