mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
sre 2.1b2 update:
- take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn
This commit is contained in:
parent
8e9972c215
commit
b25e1ad253
8 changed files with 165 additions and 49 deletions
|
|
@ -329,6 +329,8 @@ for t in tests:
|
|||
u = unicode(s, "latin-1")
|
||||
except NameError:
|
||||
pass
|
||||
except TypeError:
|
||||
continue # skip unicode test strings
|
||||
else:
|
||||
result=obj.search(u)
|
||||
if result==None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue