Skip to content

Commit dfce76d

Browse files
authored
Merge pull request #402 from weakish/refactor_save_to_qiniu_internal_py3
refactor(File): remove unused statements
2 parents 1b8daf9 + 4ff8f63 commit dfce76d

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)