[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): def connect(self):
"""连接""" """连接"""
try: try:
f = file(self.filePath) f = open(self.filePath)
except IOError: except IOError:
log = VtLogData() log = VtLogData()
log.gatewayName = self.gatewayName log.gatewayName = self.gatewayName