

def default(self, obj):
    if isinstance(obj, Promise):
        return force_unicode(obj)
    return super(LazyEncoder, self).default(obj)

dataset/ETHPy150Open evennia/evennia/evennia/server/portal/webclient.py LazyEncoder.default/original