aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Arias <emmanuelarias30@gmail.com>2019-03-21 01:39:17 -0300
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-03-20 21:39:17 -0700
commited5e29cba500c2336aacdb7c77953f1064235b72 (patch)
treeee40b0a8e9bfe4a0efc98fa63830aea417756e08 /Parser/asdl_c.py
parentbpo-36324: NormalDist() add more tests and update comments (GH-12476) (diff)
downloadcpython-ed5e29cba500c2336aacdb7c77953f1064235b72.tar.gz
cpython-ed5e29cba500c2336aacdb7c77953f1064235b72.tar.bz2
cpython-ed5e29cba500c2336aacdb7c77953f1064235b72.zip
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
Diffstat (limited to 'Parser/asdl_c.py')
-rw-r--r--Parser/asdl_c.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 52247559d1..4091b6db63 100644
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -1313,9 +1313,9 @@ if __name__ == "__main__":
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')