From 1b0b482105d9818e6576c8bdbb62d7ba1ae6e866 Mon Sep 17 00:00:00 2001 From: A_D Date: Thu, 28 Jan 2021 18:13:39 +0200 Subject: [PATCH] Replaced old formatting with fstring --- protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.py b/protocol.py index f1eb015c..fc4fc4c6 100644 --- a/protocol.py +++ b/protocol.py @@ -292,7 +292,7 @@ else: # Linux / Run from source def __init__(self): GenericProtocolHandler.__init__(self) self.httpd = HTTPServer(('localhost', 0), HTTPRequestHandler) - self.redirect = 'http://localhost:%d/auth' % self.httpd.server_port + self.redirect = f'http://localhost:{self.httpd.server_port}/auth' logger.trace(f'Web server listening on {self.redirect}') self.thread = None