From 27fa19babcbc60d12feb29c19eb612fd8e83e972 Mon Sep 17 00:00:00 2001 From: Tim Hutt Date: Sun, 27 Oct 2024 22:22:33 +0000 Subject: [PATCH] Minor simplification of Python boolean --- parse.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/parse.py b/parse.py index 29f6062e..9677ed6d 100755 --- a/parse.py +++ b/parse.py @@ -40,9 +40,7 @@ extensions = [ext for ext in extensions if ext not in targets] print(f"Extensions selected : {extensions}") - include_pseudo = False - if "-pseudo" in sys.argv[1:]: - include_pseudo = True + include_pseudo = "-pseudo" in sys.argv[1:] instr_dict = create_inst_dict(extensions, include_pseudo)