Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
a16d0a8d
Commit
a16d0a8d
authored
Dec 23, 2014
by
Toshio Kuratomi
Committed by
James Cammarata
Feb 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore json import for redis as well. Switch preference to simplejson for speed
parent
bf656e35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
lib/ansible/cache/jsonfile.py
+2
-2
lib/ansible/cache/redis.py
+5
-0
lib/ansible/utils/__init__.py
+3
-3
No files found.
lib/ansible/cache/jsonfile.py
View file @
a16d0a8d
...
...
@@ -21,9 +21,9 @@ import json
import
errno
try
:
import
json
except
ImportError
:
import
simplejson
as
json
except
ImportError
:
import
json
from
ansible
import
constants
as
C
from
ansible
import
utils
...
...
lib/ansible/cache/redis.py
View file @
a16d0a8d
...
...
@@ -21,6 +21,11 @@ import collections
import
sys
import
time
try
:
import
simplejson
as
json
except
ImportError
:
import
json
from
ansible
import
constants
as
C
from
ansible.utils
import
jsonify
from
ansible.cache.base
import
BaseCacheModule
...
...
lib/ansible/utils/__init__.py
View file @
a16d0a8d
...
...
@@ -45,7 +45,6 @@ import warnings
import
traceback
import
getpass
import
sys
import
json
import
subprocess
import
contextlib
...
...
@@ -63,9 +62,10 @@ CODE_REGEX = re.compile(r'(?:{%|%})')
try
:
import
json
except
ImportError
:
# simplejson can be much faster if it's available
import
simplejson
as
json
except
ImportError
:
import
json
# Note, sha1 is the only hash algorithm compatible with python2.4 and with
# FIPS-140 mode (as of 11-2014)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment