[Python-checkins] CVS: python/dist/src/Lib sre.py,1.33,1.34

Guido van Rossum gvanrossum@users.sourceforge.net
Fri, 10 Aug 2001 07:56:56 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv7950

Modified Files:
	sre.py 
Log Message:
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.


Index: sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** sre.py	2001/07/08 13:26:57	1.33
--- sre.py	2001/08/10 14:56:54	1.34
***************
*** 171,174 ****
--- 171,175 ----
          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]):