projects
/
gonvert
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Making simplejson a fallback for py<2.6
[gonvert]
/
gonvert
/
gonvert_qt.py
diff --git
a/gonvert/gonvert_qt.py
b/gonvert/gonvert_qt.py
index
c37b024
..
3cc50b6
100755
(executable)
--- a/
gonvert/gonvert_qt.py
+++ b/
gonvert/gonvert_qt.py
@@
-8,7
+8,11
@@
from __future__ import with_statement
import os
import math
-import simplejson
+try:
+ import json as simplejson
+except ImportError:
+ print "json not available, falling back to simplejson"
+ import simplejson
import logging
import logging.handlers