From 1c13cb9cce73bf1e47977be89ef3b086e36ef3c8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 12 Sep 2020 16:33:13 -0400 Subject: Adapt to https://github.com/python/cpython/pull/22027 --- igor.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'igor.py') diff --git a/igor.py b/igor.py index 9a632b57..6502a6fc 100644 --- a/igor.py +++ b/igor.py @@ -327,6 +327,9 @@ def print_banner(label): if '__pypy__' in sys.builtin_module_names: version += " (pypy %s)" % ".".join(str(v) for v in sys.pypy_version_info) + if getattr(sys.flags, "noopt", False): + version += " (noopt)" + try: which_python = os.path.relpath(sys.executable) except ValueError: -- cgit v1.2.1