DebugClients/Python/coverage/env.py

branch
maintenance
changeset 6273
0daf79d65080
parent 6219
d6c795b5ce33
child 6649
f1b3a73831c9
--- a/DebugClients/Python/coverage/env.py	Mon Apr 02 12:04:56 2018 +0200
+++ b/DebugClients/Python/coverage/env.py	Tue May 01 12:03:52 2018 +0200
@@ -4,6 +4,7 @@
 """Determine facts about the environment."""
 
 import os
+import platform
 import sys
 
 # Operating systems.
@@ -11,7 +12,12 @@
 LINUX = sys.platform == "linux2"
 
 # Python implementations.
-PYPY = '__pypy__' in sys.builtin_module_names
+PYPY = (platform.python_implementation() == 'PyPy')
+if PYPY:
+    PYPYVERSION = sys.pypy_version_info
+
+JYTHON = (platform.python_implementation() == 'Jython')
+IRONPYTHON = (platform.python_implementation() == 'IronPython')
 
 # Python versions.
 PYVERSION = sys.version_info

eric ide

mercurial