From 789ba525411fc80695801d7704c250a6c2524e7e Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 20 Apr 2023 10:23:37 +0800 Subject: [PATCH] Break down print line --- scripts/n2n-httpd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/n2n-httpd b/scripts/n2n-httpd index b200bf8..bce4c53 100755 --- a/scripts/n2n-httpd +++ b/scripts/n2n-httpd @@ -433,7 +433,7 @@ class SimpleHandler(http.server.BaseHTTPRequestHandler): def main(): ap = argparse.ArgumentParser( - description='Control the running local n2n edge via http') + description='Control the running local n2n edge via http') ap.add_argument('-t', '--mgmtport', action='store', default=5644, help='Management Port (default=5644)', type=int) ap.add_argument('--snmgmtport', action='store', default=5645, @@ -464,7 +464,10 @@ def main(): httpd = socketserver.TCPServer(("", args.port), handler) try: - print(f"Serving HTTP at port {args.port} (http://localhost:{args.port}/) ...") + print( + f'Serving HTTP at port {args.port} ' + f'(http://localhost:{args.port}/) ...' + ) httpd.serve_forever() except KeyboardInterrupt: return