From bc1d9bbae0195f1397b8143fa36d1128f3499d0d Mon Sep 17 00:00:00 2001 From: eamanu Date: Wed, 20 Mar 2019 22:34:34 -0300 Subject: [PATCH] Add ``elif`` sentence on to avoid multiple ``if`` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- Parser/asdl_c.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 52247559d1a937a..4091b6db638cd6b 100644 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -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')