Skip to content

Commit 2a1cb76

Browse files
committed
fix bug
1 parent 96f07dc commit 2a1cb76

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
@@ -272,7 +272,7 @@ def send_request(self, method, url, bucket, timeout=30, cos_request=True, **kwar
272272
body = kwargs[data]
273273
if hasattr(body, 'tell') and hasattr(body, 'seek') and hasattr(body, 'read'):
274274
can_retry = True
275-
elif isinstance(body, unicode) or isinstance(body, text_type) or isinstance(body, binary_type):
275+
elif isinstance(body, text_type) or isinstance(body, binary_type):
276276
can_retry = True
277277

278278
if j < self._retry and can_retry:

0 commit comments

Comments
 (0)