diff options
author | Guido van Rossum <guido@python.org> | 2001-08-10 14:56:54 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-10 14:56:54 (GMT) |
commit | 315cd29ecf694b23715165cda8628e2444371c98 (patch) | |
tree | 09c45510f1f7757d6f0d900355e751f2ed760b0e /Lib/sre.py | |
parent | e056e4d15cb1d70308e9cae92fa904dcb8941f3a (diff) | |
download | cpython-315cd29ecf694b23715165cda8628e2444371c98.zip cpython-315cd29ecf694b23715165cda8628e2444371c98.tar.gz cpython-315cd29ecf694b23715165cda8628e2444371c98.tar.bz2 |
Disable the sub() optimization until Fredrik has time to look into SF
bug #449000, "re.sub(r'\n', ...) broke". This was Fredrik's
suggestion -- he's on vacation and said he wouldn't be able to work on
this until next week.
Diffstat (limited to 'Lib/sre.py')
-rw-r--r-- | Lib/sre.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |