Skip to content

Commit

Permalink
use ultrajson (ujson) as preferred json library
Browse files Browse the repository at this point in the history
ultrajson claims to be an ultra-fast JSON library for Python

Package: http://pypi.python.org/pypi/ujson/
Code: https://github.com/esnme/ultrajson/
  • Loading branch information
stefankoegl committed Jul 1, 2012
1 parent 971439d commit 72fbc4b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions couchdbkit/utils.py
Expand Up @@ -20,18 +20,23 @@


try:
import simplejson as json
import ujson as json

except ImportError:

try:
import json
import simplejson as json
except ImportError:
raise ImportError("""simplejson isn't installed
try:
import json
except ImportError:
raise ImportError("""simplejson isn't installed
Install it with the command:
Install it with the command:
pip install simplejson
""")

pip install simplejson
""")


# backport relpath from python2.6
if not hasattr(os.path, 'relpath'):
Expand Down

0 comments on commit 72fbc4b

Please sign in to comment.