mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fall back to standalone simplejson module
CentOS5 has python 2.4 which doesn't have a built-in json module
This commit is contained in:
parent
9681e1fa04
commit
ef8ea13495
2 changed files with 8 additions and 2 deletions
|
@ -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…
Reference in a new issue