summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-11 11:10:44 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-11 11:10:44 (GMT)
commit65c28b7efb290f5eadf538f14514c9a48bb0f1d7 (patch)
tree3cee88969792b3ab2500859808a198aa8ad26166 /Lib
parent63e18195b8b7a064488d106537703861f08aa415 (diff)
downloadcpython-65c28b7efb290f5eadf538f14514c9a48bb0f1d7.zip
cpython-65c28b7efb290f5eadf538f14514c9a48bb0f1d7.tar.gz
cpython-65c28b7efb290f5eadf538f14514c9a48bb0f1d7.tar.bz2
Removed debug print in set construction.
Changed some '==' to 'in' (Tim Peters).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/re.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/re.py b/Lib/re.py
index 60dcb8b..2a179af 100644
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -188,7 +188,6 @@ class Set(Instruction):
name = 'set'
def __init__(self, set):
self.set = set
- print set
Instruction.__init__(self, chr(3), 33)
def assemble(self, position, labels):
result = self.opcode
@@ -719,11 +718,11 @@ def compile(pattern, flags=0):
elif pattern[index] in 'iImMsSxX':
while (index < len(pattern)) and (pattern[index] != ')'):
- if pattern[index] == 'iI':
+ if pattern[index] in 'iI':
flags = flags | IGNORECASE
- elif pattern[index] == 'mM':
+ elif pattern[index] in 'mM':
flags = flags | MULTILINE
- elif pattern[index] == 'sS':
+ elif pattern[index] in 'sS':
flags = flags | DOTALL
elif pattern[index] in 'xX':
flags = flags | VERBOSE