mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Removed debug print in set construction.
Changed some '==' to 'in' (Tim Peters).
This commit is contained in:
parent
63e18195b8
commit
65c28b7efb
1 changed files with 3 additions and 4 deletions
|
@ -188,7 +188,6 @@ class Set(Instruction):
|
||||||
name = 'set'
|
name = 'set'
|
||||||
def __init__(self, set):
|
def __init__(self, set):
|
||||||
self.set = set
|
self.set = set
|
||||||
print set
|
|
||||||
Instruction.__init__(self, chr(3), 33)
|
Instruction.__init__(self, chr(3), 33)
|
||||||
def assemble(self, position, labels):
|
def assemble(self, position, labels):
|
||||||
result = self.opcode
|
result = self.opcode
|
||||||
|
@ -719,11 +718,11 @@ def compile(pattern, flags=0):
|
||||||
|
|
||||||
elif pattern[index] in 'iImMsSxX':
|
elif pattern[index] in 'iImMsSxX':
|
||||||
while (index < len(pattern)) and (pattern[index] != ')'):
|
while (index < len(pattern)) and (pattern[index] != ')'):
|
||||||
if pattern[index] == 'iI':
|
if pattern[index] in 'iI':
|
||||||
flags = flags | IGNORECASE
|
flags = flags | IGNORECASE
|
||||||
elif pattern[index] == 'mM':
|
elif pattern[index] in 'mM':
|
||||||
flags = flags | MULTILINE
|
flags = flags | MULTILINE
|
||||||
elif pattern[index] == 'sS':
|
elif pattern[index] in 'sS':
|
||||||
flags = flags | DOTALL
|
flags = flags | DOTALL
|
||||||
elif pattern[index] in 'xX':
|
elif pattern[index] in 'xX':
|
||||||
flags = flags | VERBOSE
|
flags = flags | VERBOSE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue