Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r72360:b2f768401d32
Date: 2014-07-05 15:56 +0200
http://bitbucket.org/pypy/pypy/changeset/b2f768401d32/
Log: Print "PyPy-STM" instead of "PyPy" in the banner, to distinguish the
two more easily.
diff --git a/pypy/module/sys/version.py b/pypy/module/sys/version.py
--- a/pypy/module/sys/version.py
+++ b/pypy/module/sys/version.py
@@ -61,13 +61,17 @@
ver = "%d.%d.%d" % (PYPY_VERSION[0], PYPY_VERSION[1], PYPY_VERSION[2])
if PYPY_VERSION[3] != "final":
ver = ver + "-%s%d" %(PYPY_VERSION[3], PYPY_VERSION[4])
- return space.wrap("%d.%d.%d (%s, %s, %s)\n[PyPy %s%s]" % (
+ extra = ''
+ if space.config.translation.stm:
+ extra = '-STM'
+ return space.wrap("%d.%d.%d (%s, %s, %s)\n[PyPy%s %s%s]" % (
CPYTHON_VERSION[0],
CPYTHON_VERSION[1],
CPYTHON_VERSION[2],
get_repo_version_info(root=pypyroot)[1],
date,
time,
+ extra,
ver,
compiler_version()))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit