use stdlib's json module if simplejson is missing

json is available in Python >= 2.6
This commit is contained in:
Piotr Ożarowski committed 2013-09-10 23:12:46 +02:00
1 parent ec9a457e3e
commit 20d4f961b6
9 files changed
+36 -9

No files matched your search

+4 -1
View File
@@ -1,7 +1,10 @@
import os, subprocess
from socket import gethostname
import cherrypy
import simplejson as json
try:
import simplejson as json
except ImportError:
import json
from gettext import gettext as _
from filedict import FileDict
from modules.auth import require
+4 -1
View File
@@ -1,6 +1,9 @@
import os
import cherrypy
import simplejson as json
try:
import simplejson as json
except ImportError:
import json
from gettext import gettext as _
from filedict import FileDict
from modules.auth import require
+4 -1
View File
@@ -1,6 +1,9 @@
import os
import cherrypy
import simplejson as json
try:
import simplejson as json
except ImportError:
import json
from gettext import gettext as _
from filedict import FileDict
from auth import require
+4 -1
View File
@@ -1,6 +1,9 @@
import os
import cherrypy
import simplejson as json
try:
import simplejson as json
except ImportError:
import json
from gettext import gettext as _
from filedict import FileDict
from modules.auth import require