Show More
@@ -289,13 +289,16 def has_python243(): | |||||
289 | @check("json", "some json module available") |
|
289 | @check("json", "some json module available") | |
290 | def has_json(): |
|
290 | def has_json(): | |
291 | try: |
|
291 | try: | |
292 | if sys.version_info < (2, 7): |
|
|||
293 | import simplejson as json |
|
|||
294 | else: |
|
|||
295 |
|
|
292 | import json | |
296 | json.dumps |
|
293 | json.dumps | |
297 | return True |
|
294 | return True | |
298 | except ImportError: |
|
295 | except ImportError: | |
|
296 | try: | |||
|
297 | import simplejson as json | |||
|
298 | json.dumps | |||
|
299 | return True | |||
|
300 | except ImportError: | |||
|
301 | pass | |||
299 |
|
|
302 | return False | |
300 |
|
303 | |||
301 | @check("outer-repo", "outer repo") |
|
304 | @check("outer-repo", "outer repo") |
General Comments 0
You need to be logged in to leave comments.
Login now