Skip to content

Commit e04d307

Browse files
author
yuniszhang
committed
modify restore_object response
1 parent 0218516 commit e04d307

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

qcloud_cos/cos_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ def restore_object(self, Bucket, Key, RestoreRequest={}, **kwargs):
11281128
auth=CosS3Auth(self._conf, Key, params=params),
11291129
headers=headers,
11301130
params=params)
1131-
return rt
1131+
return None
11321132

11331133
def select_object_content(self, Bucket, Key, Expression, ExpressionType, InputSerialization, OutputSerialization,
11341134
RequestProgress=None, **kwargs):
@@ -2400,7 +2400,7 @@ def put_bucket_domain(self, Bucket, DomainConfiguration={}, **kwargs):
24002400
auth=CosS3Auth(self._conf, params=params),
24012401
headers=headers,
24022402
params=params)
2403-
return rt
2403+
return None
24042404

24052405
def get_bucket_domain(self, Bucket, **kwargs):
24062406
"""获取bucket 自定义域名配置

qcloud_cos/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '5.1.9.10'
1+
__version__ = '5.1.9.11'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def long_description():
1616

1717
setup(
1818
name='cos-python-sdk-v5',
19-
version='1.9.10',
19+
version='1.9.11',
2020
url='https://www.qcloud.com/',
2121
license='MIT',
2222
author='tiedu, lewzylu, channingliu',

ut/test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,8 +1785,6 @@ def test_sse_c_file():
17851785
'Tier': 'Expedited'
17861786
}
17871787
}, SSECustomerAlgorithm='AES256', SSECustomerKey=ssec_key, SSECustomerKeyMD5=ssec_key_md5)
1788-
print(response)
1789-
assert(response.status_code == 202)
17901788

17911789
# 测试大文件高级上传,走多段
17921790
gen_file('sdk-sse-c-big.local', 21)

0 commit comments

Comments
 (0)