Fall back to standalone simplejson module

CentOS5 has python 2.4 which doesn't have a built-in json
module
reviewable/pr18780/r1
Jeremy Katz 13 years ago
parent e0661a17eb
commit 2a3a0d60cd

@ -1,6 +1,9 @@
#!/usr/bin/python
import json
try:
import json
except ImportError:
import simplejson as json
import subprocess
import sys
import datetime

@ -1,5 +1,8 @@
#!/usr/bin/python
import json
try:
import json
except ImportError:
import simplejson as json
print json.dumps(1)

Loading…
Cancel
Save