Show More
@@ -289,14 +289,17 b' 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): |
|
292 | import json | |
293 | import simplejson as json |
|
|||
294 | else: |
|
|||
295 | import json |
|
|||
296 | json.dumps |
|
293 | json.dumps | |
297 | return True |
|
294 | return True | |
298 | except ImportError: |
|
295 | except ImportError: | |
299 | return False |
|
296 | try: | |
|
297 | import simplejson as json | |||
|
298 | json.dumps | |||
|
299 | return True | |||
|
300 | except ImportError: | |||
|
301 | pass | |||
|
302 | return False | |||
300 |
|
303 | |||
301 | @check("outer-repo", "outer repo") |
|
304 | @check("outer-repo", "outer repo") | |
302 | def has_outer_repo(): |
|
305 | def has_outer_repo(): |
General Comments 0
You need to be logged in to leave comments.
Login now