summaryrefslogtreecommitdiffstats
path: root/Lib/sre.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sre.py')
-rw-r--r--Lib/sre.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/sre.py b/Lib/sre.py
index e655097..7b79f43 100644
--- a/Lib/sre.py
+++ b/Lib/sre.py
@@ -170,6 +170,7 @@ def _subn(pattern, template, text, count=0, sub=0):
else:
template = _compile_repl(template, pattern)
literals = template[1]
+ sub = 0 # temporarly disabled, see bug #449000
if (sub and not count and pattern._isliteral() and
len(literals) == 1 and literals[0]):
# shortcut: both pattern and string are literals