mirror of https://github.com/ansible/ansible.git
Fall back to standalone simplejson module
CentOS5 has python 2.4 which doesn't have a built-in json modulepull/3/head
parent
9681e1fa04
commit
ef8ea13495
@ -1,5 +1,8 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
try:
|
||||||
import json
|
import json
|
||||||
|
except ImportError:
|
||||||
|
import simplejson as json
|
||||||
|
|
||||||
print json.dumps(1)
|
print json.dumps(1)
|
||||||
|
Loading…
Reference in New Issue