Skip to content

Commit 4ff8f63

Browse files
committed
refactor(File): remove unused statements
In _save_to_qiniu_internal_py3(): - remove unused import - remove unused else cause of while True loop
1 parent 1b8daf9 commit 4ff8f63

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

leancloud/file_.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def destroy(self):
177177
raise LeanCloudError(1, "the file is not sucessfully destroyed")
178178

179179
def _save_to_qiniu_internal_py3(self, token, key):
180-
from qiniu.services.storage.uploader import crc32, _form_put, put_data
180+
from qiniu.services.storage.uploader import crc32, _form_put
181181
from qiniu.config import _BLOCK_SIZE
182182

183183
final_data = ''
@@ -189,8 +189,6 @@ def _save_to_qiniu_internal_py3(self, token, key):
189189
final_data = tmp_data
190190
else:
191191
final_data += tmp_data
192-
else:
193-
final_data = self._source.data
194192

195193
crc = crc32(final_data)
196194
return _form_put(

0 commit comments

Comments
 (0)