Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed5e29c

Browse files
eamanumiss-islington
authored andcommitted
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
1 parent 2afb598 commit ed5e29c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Parser/asdl_c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,9 +1313,9 @@ def main(srcfile, dump_module=False):
13131313
for o, v in opts:
13141314
if o == '-h':
13151315
H_FILE = v
1316-
if o == '-c':
1316+
elif o == '-c':
13171317
C_FILE = v
1318-
if o == '-d':
1318+
elif o == '-d':
13191319
dump_module = True
13201320
if H_FILE and C_FILE:
13211321
print('Must specify exactly one output file')

0 commit comments

Comments
 (0)