mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-02-18 03:16:35 +01:00
fix SyntaxWarning
This commit is contained in:
parent
3608c2bbe5
commit
1f5601dae2
1 changed files with 2 additions and 1 deletions
|
@ -33,10 +33,11 @@ CON_POOL_SIZE = 1
|
||||||
|
|
||||||
|
|
||||||
def _get_con_pool():
|
def _get_con_pool():
|
||||||
|
global _CON_POOL
|
||||||
|
|
||||||
if _CON_POOL is not None:
|
if _CON_POOL is not None:
|
||||||
return _CON_POOL
|
return _CON_POOL
|
||||||
|
|
||||||
global _CON_POOL
|
|
||||||
_CON_POOL = urllib3.HTTPSConnectionPool(
|
_CON_POOL = urllib3.HTTPSConnectionPool(
|
||||||
host='api.telegram.org',
|
host='api.telegram.org',
|
||||||
maxsize=CON_POOL_SIZE,
|
maxsize=CON_POOL_SIZE,
|
||||||
|
|
Loading…
Add table
Reference in a new issue