[Mod]ctpGateway的Python3兼容性修改

This commit is contained in:
studynon 2018-08-25 10:33:54 +08:00
parent cd1d939c58
commit 8e4f9121a1

View File

@ -108,7 +108,7 @@ class CtpGateway(VtGateway):
def connect(self):
"""连接"""
try:
f = file(self.filePath)
f = open(self.filePath)
except IOError:
log = VtLogData()
log.gatewayName = self.gatewayName