summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-10-06 14:27:05 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-10-06 14:27:05 -0400
commit3931bcb4e689fa986899f722d40b34406ef7f11e (patch)
treee1bb9957a504c6bd8ef867c71f1a167acdf24f45
parent471e56c387591e2dec5ed949a6d2f6aa3e5f43f8 (diff)
downloadtablib-3931bcb4e689fa986899f722d40b34406ef7f11e.tar.gz
Added vendorized JSON.
-rw-r--r--tablib/formats/_json.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tablib/formats/_json.py b/tablib/formats/_json.py
index 5619316..da31b23 100644
--- a/tablib/formats/_json.py
+++ b/tablib/formats/_json.py
@@ -4,9 +4,12 @@
"""
try:
- import json
+ import json # load system JSON (Python >= 2.6)
except ImportError:
- import simplejson as json
+ try:
+ import simplejson as json
+ except ImportError:
+ import tablib.packages.simplejson as json # use the vendorized copy
import tablib.core