summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorJulien Jehannet <julien.jehannet@logilab.fr>2010-09-28 19:30:00 +0200
committerJulien Jehannet <julien.jehannet@logilab.fr>2010-09-28 19:30:00 +0200
commit2df1133db1281b1b83685da7f62962961d261071 (patch)
tree46af7f6986274c5f0b533f5640715458830a16a5 /compat.py
parentfc9595aa552e6b0f24a76ab7c07d301d206f6824 (diff)
downloadlogilab-common-2df1133db1281b1b83685da7f62962961d261071.tar.gz
[compat] add more compat statement + update docstring
Diffstat (limited to 'compat.py')
-rw-r--r--compat.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat.py b/compat.py
index ad18834..593ccd0 100644
--- a/compat.py
+++ b/compat.py
@@ -397,3 +397,9 @@ try:
import configparser
except ImportError:
import ConfigParser as configparser
+
+# may not be there if cubicweb-web not installed
+if sys.version_info < (2, 6):
+ import simplejson as json
+else:
+ import json