mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
SF 563203. Replaced 'has_key()' with 'in'.
This commit is contained in:
parent
9d5e4aa414
commit
54f0222547
54 changed files with 243 additions and 222 deletions
|
|
@ -568,9 +568,9 @@ def _parse(source, state):
|
|||
continue
|
||||
else:
|
||||
# flags
|
||||
if not FLAGS.has_key(source.next):
|
||||
if not source.next in FLAGS:
|
||||
raise error, "unexpected end of pattern"
|
||||
while FLAGS.has_key(source.next):
|
||||
while source.next in FLAGS:
|
||||
state.flags = state.flags | FLAGS[source.get()]
|
||||
if group:
|
||||
# parse group contents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue