summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-09-12 16:33:13 -0400
committerNed Batchelder <ned@nedbatchelder.com>2020-09-12 16:33:13 -0400
commit1c13cb9cce73bf1e47977be89ef3b086e36ef3c8 (patch)
treee9ee8c4e244cc651575d066d5d3326dbd77539b2 /igor.py
parentc3159081ae67864f75aacc1b86310fe9d8d614cb (diff)
downloadpython-coveragepy-git-nedbat/test-2506.tar.gz
Adapt to https://github.com/python/cpython/pull/22027nedbat/test-2506
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py3
1 files changed, 3 insertions, 0 deletions
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: