]> granicus.if.org Git - python/commitdiff
Removed debug print in set construction.
authorGuido van Rossum <guido@python.org>
Fri, 11 Jul 1997 11:10:44 +0000 (11:10 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 11 Jul 1997 11:10:44 +0000 (11:10 +0000)
Changed some '==' to 'in' (Tim Peters).

Lib/re.py

index 60dcb8b3b05ec6161320d968911d1f9f753f4140..2a179afc1b613a1eab03296760dcc1af1a56b038 100644 (file)
--- 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