mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Minor style fix
This commit is contained in:
parent
973ccfcd03
commit
a0c1018a1b
@ -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)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user