mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-26 13:18:58 +07:00
python 2.5 does not include json so lets try to use simplejson
This commit is contained in:
@@ -17,9 +17,13 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
import simplejson as json
|
||||
|
||||
from optparse import OptionParser
|
||||
import sys
|
||||
import json
|
||||
import os
|
||||
import getpass
|
||||
import shlex
|
||||
|
||||
@@ -16,11 +16,15 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
import simplejson as json
|
||||
|
||||
import fnmatch
|
||||
import multiprocessing
|
||||
import signal
|
||||
import os
|
||||
import json
|
||||
import traceback
|
||||
import paramiko # non-core dependency
|
||||
import ansible.constants as C
|
||||
|
||||
Reference in New Issue
Block a user