##// END OF EJS Templates
hghave: use a less brittle have-json check
Augie Fackler -
r23262:86a8658c default
parent child Browse files
Show More
@@ -289,14 +289,17 b' def has_python243():'
289 289 @check("json", "some json module available")
290 290 def has_json():
291 291 try:
292 if sys.version_info < (2, 7):
293 import simplejson as json
294 else:
295 import json
292 import json
296 293 json.dumps
297 294 return True
298 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 304 @check("outer-repo", "outer repo")
302 305 def has_outer_repo():
General Comments 0
You need to be logged in to leave comments. Login now