2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Minor style fix

This commit is contained in:
Dan 2018-08-28 12:25:08 +02:00
parent 973ccfcd03
commit a0c1018a1b

View File

@ -52,6 +52,14 @@ class DataCenter:
def __new__(cls, dc_id: int, test_mode: bool, ipv6: bool):
if ipv6:
return (cls.TEST_IPV6[dc_id], 80) if test_mode else (cls.PROD_IPV6[dc_id], 443)
return (
(cls.TEST_IPV6[dc_id], 80)
if test_mode
else (cls.PROD_IPV6[dc_id], 443)
)
else:
return (cls.TEST[dc_id], 80) if test_mode else (cls.PROD[dc_id], 443)
return (
(cls.TEST[dc_id], 80)
if test_mode
else (cls.PROD[dc_id], 443)
)