Skip to content

Commit 719f6ff

Browse files
author
yuniszhang
committed
修改静态检查
1 parent 4ca5cb6 commit 719f6ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qcloud_cos/cos_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def convert_secret_value(self, value):
207207
class CosS3Client(object):
208208
"""cos客户端类,封装相应请求"""
209209

210-
__built_in_sessions = None # 内置的静态连接池,多个Client间共享使用
210+
__built_in_sessions = None # 内置的静态连接池,多个Client间共享使用
211211

212212
def __init__(self, conf, retry=1, session=None):
213213
"""初始化client对象
@@ -221,7 +221,7 @@ def __init__(self, conf, retry=1, session=None):
221221

222222
if not CosS3Client.__built_in_sessions:
223223
with threading.Lock():
224-
if not CosS3Client.__built_in_sessions: # 加锁后double check
224+
if not CosS3Client.__built_in_sessions: # 加锁后double check
225225
CosS3Client.__built_in_sessions = self.generate_built_in_connection_pool(self._conf._pool_connections, self._conf._pool_maxsize)
226226

227227
if session is None:
@@ -235,7 +235,7 @@ def set_built_in_connection_pool_max_size(self, PoolConnections, PoolMaxSize):
235235
return
236236

237237
if CosS3Client.__built_in_sessions.get_adapter('http://')._pool_connections == PoolConnections \
238-
and CosS3Client.__built_in_sessions.get_adapter('http://')._pool_maxsize == PoolMaxSize:
238+
and CosS3Client.__built_in_sessions.get_adapter('http://')._pool_maxsize == PoolMaxSize:
239239
return
240240

241241
# 判断之前是否绑定到内置连接池

0 commit comments

Comments
 (0)