mirror of
https://github.com/python/cpython
synced 2024-10-04 16:44:57 +00:00
bpo-36385: Add `elif
sentence on to avoid multiple
if
` (GH-12478)
Currently, when arguments on Parser/asdl_c.py are parsed ``ìf`` sentence is used. This PR Propose to use ``elif`` to avoid multiple evaluting of the ifs. https://bugs.python.org/issue36385
This commit is contained in:
parent
2afb598618
commit
ed5e29cba5
|
@ -1313,9 +1313,9 @@ def main(srcfile, dump_module=False):
|
|||
for o, v in opts:
|
||||
if o == '-h':
|
||||
H_FILE = v
|
||||
if o == '-c':
|
||||
elif o == '-c':
|
||||
C_FILE = v
|
||||
if o == '-d':
|
||||
elif o == '-d':
|
||||
dump_module = True
|
||||
if H_FILE and C_FILE:
|
||||
print('Must specify exactly one output file')
|
||||
|
|
Loading…
Reference in a new issue