def __str__(self):
        if hasattr(self, '__unicode__'):
            if PY3:
                return self.__unicode__()
            else:
                return unicode(self).encode('utf-8')
        return txt_type('%s object' % self.__class__.__name__)
dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/Base.__str__/original