mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 14:24:51 +00:00
Minor style fix
This commit is contained in:
parent
973ccfcd03
commit
a0c1018a1b
1 changed files with 10 additions and 2 deletions
|
|
@ -52,6 +52,14 @@ class DataCenter:
|
||||||
|
|
||||||
def __new__(cls, dc_id: int, test_mode: bool, ipv6: bool):
|
def __new__(cls, dc_id: int, test_mode: bool, ipv6: bool):
|
||||||
if ipv6:
|
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:
|
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…
Reference in a new issue