diff options
Diffstat (limited to 'tox/result.py')
-rw-r--r-- | tox/result.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tox/result.py b/tox/result.py index 694138c..9954044 100644 --- a/tox/result.py +++ b/tox/result.py @@ -1,9 +1,7 @@ import sys import py -try: - import json -except ImportError: - import simplejson as json +from tox import __version__ as toxver +import json class ResultLog: @@ -11,12 +9,11 @@ class ResultLog: if dict is None: dict = {} self.dict = dict - - def set_header(self, installpkg): - from tox import __version__ as toxver self.dict.update({"reportversion": "1", "toxversion": toxver}) self.dict["platform"] = sys.platform self.dict["host"] = py.std.socket.getfqdn() + + def set_header(self, installpkg): self.dict["installpkg"] = dict( md5=installpkg.computehash("md5"), sha256=installpkg.computehash("sha256"), |