summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-11-18 04:58:13 (GMT)
committerGitHub <noreply@github.com>2023-11-18 04:58:13 (GMT)
commiteb3c94ea669561a0dfacaca715d4b2723bb2c6f4 (patch)
tree241fe49c2c0ae402ed709674e63c16ad0ec24f8e /Tools
parent43b1c33204d125e256f7a0c3086ba547b71a105e (diff)
downloadcpython-eb3c94ea669561a0dfacaca715d4b2723bb2c6f4.zip
cpython-eb3c94ea669561a0dfacaca715d4b2723bb2c6f4.tar.gz
cpython-eb3c94ea669561a0dfacaca715d4b2723bb2c6f4.tar.bz2
gh-110319: Assert type_version != 0 before using it (#112226)
- Ensure that `assert(type_version != 0);` always comes *before* using `type_version` Also: - In cases_generator, rename `-v` to from `--verbose` to `--viable`
Diffstat (limited to 'Tools')
-rw-r--r--Tools/cases_generator/generate_cases.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/cases_generator/generate_cases.py b/Tools/cases_generator/generate_cases.py
index ba45e3a..149558e 100644
--- a/Tools/cases_generator/generate_cases.py
+++ b/Tools/cases_generator/generate_cases.py
@@ -94,7 +94,7 @@ arg_parser = argparse.ArgumentParser(
arg_parser.add_argument(
"-v",
- "--verbose",
+ "--viable",
help="Print list of non-viable uops and exit",
action="store_true",
)
@@ -871,7 +871,7 @@ def main() -> None:
a.analyze() # Prints messages and sets a.errors on failure
if a.errors:
sys.exit(f"Found {a.errors} errors")
- if args.verbose:
+ if args.viable:
# Load execution counts from bmraw.json, if it exists
a.report_non_viable_uops("bmraw.json")
return