From 71392e1a76ffbc9b4075e6d5b05f7849061e5960 Mon Sep 17 00:00:00 2001 From: tiedu Date: Wed, 14 Aug 2019 10:52:28 +0800 Subject: [PATCH 1/2] add get_conf() --- qcloud_cos/cos_client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcloud_cos/cos_client.py b/qcloud_cos/cos_client.py index f2658111..b2d6eb91 100644 --- a/qcloud_cos/cos_client.py +++ b/qcloud_cos/cos_client.py @@ -163,6 +163,10 @@ def __init__(self, conf, retry=1, session=None): else: self._session = session + def get_conf(): + """获取配置""" + return self._conf + def get_auth(self, Method, Bucket, Key, Expired=300, Headers={}, Params={}): """获取签名 From a5ed1607585134a3e42e368cd75689d9c34192e4 Mon Sep 17 00:00:00 2001 From: tiedu Date: Fri, 23 Aug 2019 16:05:42 +0800 Subject: [PATCH 2/2] publish 1.7.4 --- qcloud_cos/cos_client.py | 1 + qcloud_cos/version.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qcloud_cos/cos_client.py b/qcloud_cos/cos_client.py index b2d6eb91..d3ba6194 100644 --- a/qcloud_cos/cos_client.py +++ b/qcloud_cos/cos_client.py @@ -108,6 +108,7 @@ def uri(self, bucket, path=None, endpoint=None): if path[0] == u'/': path = path[1:] path = quote(to_bytes(path), '/-_.~') + path = path.replace('./', '.%2F') request_url = u"{scheme}://{url}/{path}".format( scheme=to_unicode(scheme), url=to_unicode(url), diff --git a/qcloud_cos/version.py b/qcloud_cos/version.py index 72954835..267837ae 100644 --- a/qcloud_cos/version.py +++ b/qcloud_cos/version.py @@ -1,2 +1,2 @@ -__version__ = '5.1.7.2' +__version__ = '5.1.7.3' diff --git a/setup.py b/setup.py index c0c497ed..184bbb9f 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ def long_description(): setup( name='cos-python-sdk-v5', - version='1.7.1', + version='1.7.3', url='https://www.qcloud.com/', license='MIT', author='tiedu, lewzylu, channingliu',