summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/sre_comp.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-07-01 04:23:47 (GMT)
committerGuido van Rossum <guido@python.org>2000-07-01 04:23:47 (GMT)
commitc08cb04c291309477c57fd89b4ab3cf89d88e471 (patch)
tree8d51764734615cff56c480b15598ff53b4e36a73 /Lib/dos-8x3/sre_comp.py
parent880066a9cbbe9c29afa9e173b1c44dc1ad459c2d (diff)
downloadcpython-c08cb04c291309477c57fd89b4ab3cf89d88e471.zip
cpython-c08cb04c291309477c57fd89b4ab3cf89d88e471.tar.gz
cpython-c08cb04c291309477c57fd89b4ab3cf89d88e471.tar.bz2
the usual
Diffstat (limited to 'Lib/dos-8x3/sre_comp.py')
-rw-r--r--Lib/dos-8x3/sre_comp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/dos-8x3/sre_comp.py b/Lib/dos-8x3/sre_comp.py
index e48a7eb..590e45f 100644
--- a/Lib/dos-8x3/sre_comp.py
+++ b/Lib/dos-8x3/sre_comp.py
@@ -39,7 +39,7 @@ def _compile(code, pattern, flags):
return _sre.getlower(literal, flags)
else:
emit(OPCODES[op])
- fixup = lambda x: x
+ fixup = lambda x: x
skip = len(code); emit(0)
for op, av in av:
emit(OPCODES[op])
@@ -118,7 +118,7 @@ def _compile(code, pattern, flags):
elif op is AT:
emit(OPCODES[op])
if flags & SRE_FLAG_MULTILINE:
- emit(ATCODES[AT_MULTILINE[av]])
+ emit(ATCODES[AT_MULTILINE.get(av, av)])
else:
emit(ATCODES[av])
elif op is BRANCH:
@@ -203,7 +203,7 @@ def compile(p, flags=0):
if type(p) in (type(""), type(u"")):
import sre_parse
pattern = p
- p = sre_parse.parse(p)
+ p = sre_parse.parse(p, flags)
else:
pattern = None