mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Issue #1700, reported by Nguyen Quan Son, fix by Fredruk Lundh:
Regular Expression inline flags not handled correctly for some unicode characters. (Forward port from 2.5.2.)
This commit is contained in:
parent
1beea3be3e
commit
ae04c3356e
3 changed files with 34 additions and 1 deletions
|
@ -525,7 +525,7 @@ def compile(p, flags=0):
|
|||
indexgroup[i] = k
|
||||
|
||||
return _sre.compile(
|
||||
pattern, flags, code,
|
||||
pattern, flags | p.pattern.flags, code,
|
||||
p.pattern.groups-1,
|
||||
groupindex, indexgroup
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue