File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,12 @@ def _get_con_pool():
3939 if _CON_POOL is not None :
4040 return _CON_POOL
4141
42- _CON_POOL = urllib3 .PoolManager (
43- maxsize = CON_POOL_SIZE ,
44- cert_reqs = 'CERT_REQUIRED' ,
45- ca_certs = certifi .where (),
46- socket_options = HTTPConnection .default_socket_options + [
47- (socket .SOL_SOCKET , socket .SO_KEEPALIVE , 1 ),
48- ])
42+ _CON_POOL = urllib3 .PoolManager (maxsize = CON_POOL_SIZE ,
43+ cert_reqs = 'CERT_REQUIRED' ,
44+ ca_certs = certifi .where (),
45+ socket_options = HTTPConnection .default_socket_options + [
46+ (socket .SOL_SOCKET , socket .SO_KEEPALIVE , 1 ),
47+ ])
4948 return _CON_POOL
5049
5150
@@ -60,7 +59,6 @@ def stop_con_pool():
6059 _CON_POOL = None
6160
6261
63-
6462def _parse (json_data ):
6563 """Try and parse the JSON returned from Telegram.
6664
You can’t perform that action at this time.
0 commit comments