Replace simpljson imports with json

This has been in standard python since 2.6, and we don't really care
about supporting anything older than that (even our old and soon to
be upgraded environments use 2.7)
This commit is contained in:
Magnus Hagander
2015-12-12 17:44:22 +01:00
parent c9f80d7b52
commit 51c10ee9df
5 changed files with 5 additions and 6 deletions

View File

@ -26,7 +26,7 @@ from django.contrib.auth import logout as django_logout
from django.conf import settings
import base64
import simplejson
import json
import socket
import urlparse
import urllib
@ -200,6 +200,6 @@ def user_search(searchterm=None, userid=None):
AES.MODE_CBC,
base64.b64decode(ivs, "-_"))
s = decryptor.decrypt(base64.b64decode(datas, "-_")).rstrip(' ')
j = simplejson.loads(s)
j = json.loads(s)
return j