def hoplite_dumps(obj, *args, **kwargs):
"""
Serializes a dictionary into unicode(unless specified otherwise)
bson.json_util.dumps does exactly what hoplite needs, so that's what
we call
:param obj: Python dictionary to be serialized
:param args: Please refer to online documentation for bson.json_util.dumps
and json.dumps
:param kwargs: Please refer to online documentation for
bson.json_util.dumps and json.dumps
:return: serialized obj in unicode
"""
return dumps(obj, *args, **kwargs)
评论列表
文章目录