

def _to_base_type(self, value):
    if isinstance(value, unicode):
        return self.encode('utf-8')

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py TextProperty._to_base_type/VarMisuse@23/28 `value`->`self`