Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions leancloud/file_.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -177,7 +177,7 @@ def destroy(self):
raise LeanCloudError(1, "the file is not sucessfully destroyed")

def _save_to_qiniu_internal_py3(self, token, key):
from qiniu.services.storage.uploader import crc32, _form_put, put_data
from qiniu.services.storage.uploader import crc32, _form_put
from qiniu.config import _BLOCK_SIZE

final_data = ''
Expand All@@ -189,8 +189,6 @@ def _save_to_qiniu_internal_py3(self, token, key):
final_data = tmp_data
else:
final_data += tmp_data
else:
final_data = self._source.data

crc = crc32(final_data)
return _form_put(
Expand Down