[Mod] flake8 code quality improve
This commit is contained in:
parent
6a50362eec
commit
a267f63732
@ -156,14 +156,14 @@ class CtpGateway(BaseGateway):
|
||||
product_info = setting["产品信息"]
|
||||
|
||||
if (
|
||||
(not td_address.startswith("tcp://")) and
|
||||
(not td_address.startswith("ssl://"))
|
||||
(not td_address.startswith("tcp://"))
|
||||
and (not td_address.startswith("ssl://"))
|
||||
):
|
||||
td_address = "tcp://" + td_address
|
||||
|
||||
if (
|
||||
(not md_address.startswith("tcp://")) and
|
||||
(not md_address.startswith("ssl://"))
|
||||
(not md_address.startswith("tcp://"))
|
||||
and (not md_address.startswith("ssl://"))
|
||||
):
|
||||
md_address = "tcp://" + md_address
|
||||
|
||||
|
@ -156,14 +156,14 @@ class CtptestGateway(BaseGateway):
|
||||
product_info = setting["产品信息"]
|
||||
|
||||
if (
|
||||
(not td_address.startswith("tcp://")) and
|
||||
(not td_address.startswith("ssl://"))
|
||||
(not td_address.startswith("tcp://"))
|
||||
and (not td_address.startswith("ssl://"))
|
||||
):
|
||||
td_address = "tcp://" + td_address
|
||||
|
||||
if (
|
||||
(not md_address.startswith("tcp://")) and
|
||||
(not md_address.startswith("ssl://"))
|
||||
(not md_address.startswith("tcp://"))
|
||||
and (not md_address.startswith("ssl://"))
|
||||
):
|
||||
md_address = "tcp://" + md_address
|
||||
|
||||
|
@ -50,7 +50,7 @@ class RqdataClient:
|
||||
return False
|
||||
|
||||
rqdata_init(
|
||||
self.username,
|
||||
self.username,
|
||||
self.password,
|
||||
('rqdatad-pro.ricequant.com', 16011),
|
||||
use_pool=True
|
||||
|
Loading…
Reference in New Issue
Block a user