Skip to content

Commit 288372e

Browse files
committed
fix python3
1 parent 5562eef commit 288372e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qcloud_cos/cos_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2496,7 +2496,7 @@ def upload_file_from_buffer(self, Bucket, Key, Body, MaxBufferSize=100, PartSize
24962496
MAXQueue = 1
24972497
pool = SimpleThreadPool(MAXThread, MAXQueue)
24982498
while True:
2499-
if data == "":
2499+
if not data:
25002500
break
25012501
pool.add_task(self._upload_part_from_buffer, Bucket, Key, data, part_num, uploadid, lst)
25022502
part_num += 1

0 commit comments

Comments
 (0)