summaryrefslogtreecommitdiffstats
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2008-01-03 19:12:44 (GMT)
committerGuido van Rossum <guido@python.org>2008-01-03 19:12:44 (GMT)
commitae04c3356ed2aec0e9e2c39096a3ccd05722575a (patch)
tree0983292ad7e3485d6fa962cfd5ce861852438fad /Lib/sre_compile.py
parent1beea3be3e507a85b0570e82e8f100594d861f6b (diff)
downloadcpython-ae04c3356ed2aec0e9e2c39096a3ccd05722575a.zip
cpython-ae04c3356ed2aec0e9e2c39096a3ccd05722575a.tar.gz
cpython-ae04c3356ed2aec0e9e2c39096a3ccd05722575a.tar.bz2
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.)
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r--Lib/sre_compile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index 7109599..22ab2fd 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -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
)