projects
/
ejpi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switching to the built-in json module, with a fallback to the external one
[ejpi]
/
ejpi
/
ejpi_qt.py
diff --git
a/ejpi/ejpi_qt.py
b/ejpi/ejpi_qt.py
index
00dea95
..
31576c5
100755
(executable)
--- a/
ejpi/ejpi_qt.py
+++ b/
ejpi/ejpi_qt.py
@@
-4,7
+4,11
@@
from __future__ import with_statement
import os
from __future__ import with_statement
import os
-import simplejson
+try:
+ import json as simplejson
+except ImportError:
+ print "json not available, falling back to simplejson"
+ import simplejson
import string
import logging
import logging.handlers
import string
import logging
import logging.handlers