From 2e509c4d8465379843d768da6db48fad39f8b131 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 8 Sep 2011 08:17:22 -0400 Subject: Show the Python implementation in 'debug sys' --- coverage/control.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index d83e11b8..b617f486 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -634,6 +634,11 @@ class coverage(object): import coverage as covmod import platform, re + try: + implementation = platform.python_implementation() + except AttributeError: + implementation = "unknown" + info = [ ('version', covmod.__version__), ('coverage', covmod.__file__), @@ -643,6 +648,7 @@ class coverage(object): ('data_path', self.data.filename), ('python', sys.version.replace('\n', '')), ('platform', platform.platform()), + ('implementation', implementation), ('cwd', os.getcwd()), ('path', sys.path), ('environment', [ -- cgit v1.2.1