]> xenbits.xensource.com Git - xtf.git/commitdiff
runner: Remove the use of simplejson
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 6 Jan 2024 23:51:43 +0000 (23:51 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Jan 2024 11:16:02 +0000 (11:16 +0000)
This became part of the standard library in Python 2.6

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xtf-runner

index 94ed1764d5414dbdc8ab5ecec298f6634aa17117..2d9b453d472abbfa0ec6d97eb55426e28bb0a785 100755 (executable)
@@ -9,15 +9,12 @@ Currently assumes the presence and availability of the `xl` toolstack.
 
 from __future__ import print_function, unicode_literals
 
+import json
 import sys, os, os.path as path
 
 from optparse import OptionParser
 from subprocess import Popen, PIPE, call as subproc_call
 
-try:
-    import json
-except ImportError:
-    import simplejson as json
 
 # Python 2/3 compatibility
 if sys.version_info >= (3, ):