[Python-checkins] python/dist/src/Lib _strptime.py, 1.23.4.3, 1.23.4.4

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Thu Aug 28 20:34:24 EDT 2003


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

Modified Files:
      Tag: release23-maint
	_strptime.py 
Log Message:
_strptime.srptime() escaped parentheses in the format string properly.
Closes bug #796149 .


Index: _strptime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/_strptime.py,v
retrieving revision 1.23.4.3
retrieving revision 1.23.4.4
diff -C2 -d -r1.23.4.3 -r1.23.4.4
*** _strptime.py	11 Aug 2003 07:19:05 -0000	1.23.4.3
--- _strptime.py	29 Aug 2003 02:34:22 -0000	1.23.4.4
***************
*** 382,386 ****
          # The sub() call escapes all characters that might be misconstrued
          # as regex syntax.
!         regex_chars = re_compile(r"([\\.^$*+?{}\[\]|])")
          format = regex_chars.sub(r"\\\1", format)
          whitespace_replacement = re_compile('\s+')
--- 382,386 ----
          # The sub() call escapes all characters that might be misconstrued
          # as regex syntax.
!         regex_chars = re_compile(r"([\\.^$*+?i\(\){}\[\]|])")
          format = regex_chars.sub(r"\\\1", format)
          whitespace_replacement = re_compile('\s+')





More information about the Python-checkins mailing list