diff options
author | Emmanuel Arias <emmanuelarias30@gmail.com> | 2019-03-21 04:39:17 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-03-21 04:39:17 (GMT) |
commit | ed5e29cba500c2336aacdb7c77953f1064235b72 (patch) | |
tree | ee40b0a8e9bfe4a0efc98fa63830aea417756e08 /Parser | |
parent | 2afb59861827a23c1b50e44022bb77291351c2f1 (diff) | |
download | cpython-ed5e29cba500c2336aacdb7c77953f1064235b72.zip cpython-ed5e29cba500c2336aacdb7c77953f1064235b72.tar.gz cpython-ed5e29cba500c2336aacdb7c77953f1064235b72.tar.bz2 |
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')
-rw-r--r-- | Parser/asdl_c.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 5224755..4091b6d 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') |