[Mod] flake8 code quality improve

This commit is contained in:
vn.py 2019-10-09 16:28:16 +08:00
parent 6a50362eec
commit a267f63732
3 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -50,7 +50,7 @@ class RqdataClient:
return False
rqdata_init(
self.username,
self.username,
self.password,
('rqdatad-pro.ricequant.com', 16011),
use_pool=True