[projects/pld-builder.new] request_handler_server: fix Python 2 print syntax in bind-error path
arekm
arekm at pld-linux.org
Sat Apr 25 16:39:16 CEST 2026
commit 33d0188f0225eeed4f279d76812f280f6c83a2e8
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Apr 25 16:34:41 2026 +0200
request_handler_server: fix Python 2 print syntax in bind-error path
PLD_Builder/request_handler_server.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/PLD_Builder/request_handler_server.py b/PLD_Builder/request_handler_server.py
index 5bcdaac..a290aaf 100644
--- a/PLD_Builder/request_handler_server.py
+++ b/PLD_Builder/request_handler_server.py
@@ -132,7 +132,7 @@ def main(srv_ssl=False):
server.socket = context.wrap_socket(server.socket, server_side=True)
except Exception as e:
log.notice("request_handler_server: can't start server on [%s:%d], ssl=%s: %s" % (host, port, str(srv_ssl), e))
- print >> sys.stderr, "ERROR: Can't start server on [%s:%d], ssl=%s: %s" % (host, port, str(srv_ssl), e)
+ print("ERROR: Can't start server on [%s:%d], ssl=%s: %s" % (host, port, str(srv_ssl), e), file=sys.stderr)
sys.exit(1)
log.notice('request_handler_server: started on [%s:%d], ssl=%s...' % (host, port, str(srv_ssl)))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/33d0188f0225eeed4f279d76812f280f6c83a2e8
More information about the pld-cvs-commit
mailing list