1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-17 07:18:19 +00:00

Remove simplejson

This commit is contained in:
zhengxie
2014-07-28 14:14:24 +08:00
parent 22b4c467ce
commit 80b7355592
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import simplejson as json import json
from common import SearpcError from common import SearpcError
def _fret_int(ret_str): def _fret_int(ret_str):
@@ -52,7 +52,7 @@ class _SearpcObj(object):
class SearpcObjEncoder(json.JSONEncoder): class SearpcObjEncoder(json.JSONEncoder):
def default(self, obj): def default(self, obj):
if not isinstance(obj, _SearpcObj): if not isinstance(obj, _SearpcObj):
return super(_SearpcObjEncoder, self).default(obj) return super(SearpcObjEncoder, self).default(obj)
return obj._dict return obj._dict
def _fret_obj(ret_str): def _fret_obj(ret_str):

View File

@@ -1,4 +1,4 @@
import simplejson as json import json
from common import SearpcError from common import SearpcError