From 94c4bce45f9c5656128d8a0c4437c4ecaa13e1df Mon Sep 17 00:00:00 2001 From: igeni Date: Fri, 22 Mar 2024 09:18:00 +0300 Subject: [PATCH] changed concat of strings to f-strings and redundant type conversion was removed --- qlib/data/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/data/client.py b/qlib/data/client.py index b6733fd3ad..a9b4b2edf7 100644 --- a/qlib/data/client.py +++ b/qlib/data/client.py @@ -35,7 +35,7 @@ def __init__(self, host, port): def connect_server(self): """Connect to server.""" try: - self.sio.connect("ws://" + self.server_host + ":" + str(self.server_port)) + self.sio.connect(f"ws://{self.server_host}:{self.server_port}") except socketio.exceptions.ConnectionError: self.logger.error("Cannot connect to server - check your network or server status")