[Python-checkins] python/dist/src/Lib/test re_tests.py,1.33,1.34

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2003年2月23日 17:18:37 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv23246/test
Modified Files:
	re_tests.py 
Log Message:
Fix from SF patch #633359 by Greg Chapman for SF bug #610299:
 The problem is in sre_compile.py: the call to
 _compile_charset near the end of _compile_info forgets to
 pass in the flags, so that the info charset is not compiled
 with re.U. (The info charset is used when searching to find
 the first character at which a match could start; it is not
 generated for patterns beginning with a repeat like '\w{1}'.) 
Index: re_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/re_tests.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** re_tests.py	19 Feb 2003 02:35:04 -0000	1.33
--- re_tests.py	24 Feb 2003 01:18:35 -0000	1.34
***************
*** 667,669 ****
--- 667,670 ----
 (r'\b.\b', 'a', SUCCEED, 'found', 'a'),
 (r'(?u)\b.\b', u, SUCCEED, 'found', u),
+ (r'(?u)\w', u, SUCCEED, 'found', u),
 ])

AltStyle によって変換されたページ (->オリジナル) /