

def _save(self, name, content):
    cleaned_name = self._clean_name(name)
    name = self._normalize_name(cleaned_name)
    if hasattr(content, 'open'):
        self.open()
    if hasattr(content, 'chunks'):
        content_str = b''.join((chunk for chunk in content.chunks()))
    else:
        content_str = content.read()
    self._put_file(name, content_str)
    content.close()
    return cleaned_name

dataset/ETHPy150Open glasslion/django-qiniu-storage/qiniustorage/backends.py QiniuStorage._save/VarMisuse@42/55 `content`->`self`