Skip to content

Commit a0c1018

Browse files
committed
Minor style fix
1 parent 973ccfc commit a0c1018

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pyrogram/session/internals/data_center.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ class DataCenter:
5252

5353
def __new__(cls, dc_id: int, test_mode: bool, ipv6: bool):
5454
if ipv6:
55-
return (cls.TEST_IPV6[dc_id], 80) if test_mode else (cls.PROD_IPV6[dc_id], 443)
55+
return (
56+
(cls.TEST_IPV6[dc_id], 80)
57+
if test_mode
58+
else (cls.PROD_IPV6[dc_id], 443)
59+
)
5660
else:
57-
return (cls.TEST[dc_id], 80) if test_mode else (cls.PROD[dc_id], 443)
61+
return (
62+
(cls.TEST[dc_id], 80)
63+
if test_mode
64+
else (cls.PROD[dc_id], 443)
65+
)

0 commit comments

Comments
 (0)