mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Use json instead of simplejson library to avoid extra depedency
Simplejson is an externally mainainted version of json library available in Python 2.6 and up. It supports Python 2.5 which were are not targetting. It also boasts better speed which is not at all a factor for us.
This commit is contained in:
1 parent
be842a5baa
commit
defcb43883
7 files changed
+6
-25
No files matched your search
@@ -1,8 +1,3 @@
|
||||
import os
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
import cherrypy
|
||||
import cfg
|
||||
from model import User
|
||||
|
||||
@@ -7,10 +7,6 @@ haven't figured that one all the way through yet.
|
||||
|
||||
import os, sys
|
||||
import cherrypy
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
from gettext import gettext as _
|
||||
from plugin_mount import PagePlugin
|
||||
from modules.auth import require
|
||||
|
||||
@@ -23,10 +23,7 @@ import cherrypy
|
||||
from django import forms
|
||||
from django.core import validators
|
||||
from gettext import gettext as _
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
import json
|
||||
import os
|
||||
import socket
|
||||
|
||||
|
||||
Reference in new issue
Block a user