mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-17 15:28:05 +00:00
Remove simplejson
This commit is contained in:
@@ -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):
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import simplejson as json
|
import json
|
||||||
|
|
||||||
from common import SearpcError
|
from common import SearpcError
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user