sessions.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:zanph 作者: zanph 项目源码 文件源码
def loads(self, value):
        def object_hook(obj):
            if len(obj) != 1:
                return obj
            the_key, the_value = next(iteritems(obj))
            if the_key == ' t':
                return tuple(the_value)
            elif the_key == ' u':
                return uuid.UUID(the_value)
            elif the_key == ' b':
                return b64decode(the_value)
            elif the_key == ' m':
                return Markup(the_value)
            elif the_key == ' d':
                return parse_date(the_value)
            return obj
        return json.loads(value, object_hook=object_hook)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号