From c5d8cf8eb6a6e84347b9379945f308f29a2fe5cb Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 30 Nov 2018 03:27:41 -0500 Subject: Use pylint. --- tools/http_server.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools/http_server.py') diff --git a/tools/http_server.py b/tools/http_server.py index 065635c6f..f9820ff19 100755 --- a/tools/http_server.py +++ b/tools/http_server.py @@ -62,7 +62,7 @@ def redirect_server(): Handler = RedirectHandler SocketServer.TCPServer.allow_reuse_address = True s = SocketServer.TCPServer(("", REDIRECT_PORT), Handler) - print "Deno redirect server http://localhost:%d/ -> http://localhost:%d/" % ( + print "redirect server http://localhost:%d/ -> http://localhost:%d/" % ( REDIRECT_PORT, PORT) return s @@ -82,7 +82,7 @@ def spawn(): return thread -if __name__ == '__main__': +def main(): try: thread = spawn() while thread.is_alive(): @@ -90,3 +90,7 @@ if __name__ == '__main__': except KeyboardInterrupt: pass sys.exit(1) + + +if __name__ == '__main__': + main() -- cgit v1.2.3