mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +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():
|
||||
global _CON_POOL
|
||||
|
||||
if _CON_POOL is not None:
|
||||
return _CON_POOL
|
||||
|
||||
global _CON_POOL
|
||||
_CON_POOL = urllib3.HTTPSConnectionPool(
|
||||
host='api.telegram.org',
|
||||
maxsize=CON_POOL_SIZE,
|
||||
|
|
Loading…
Reference in a new issue