summaryrefslogtreecommitdiff
path: root/tools/http_server.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-11-30 03:27:41 -0500
committerRyan Dahl <ry@tinyclouds.org>2018-11-30 11:33:45 -0800
commitc5d8cf8eb6a6e84347b9379945f308f29a2fe5cb (patch)
tree306901036624b604e0d7d7c0e33c6d10ec39b713 /tools/http_server.py
parentd43a4be0d291d2cb1fb4f5a9353b509e87f849eb (diff)
Use pylint.
Diffstat (limited to 'tools/http_server.py')
-rwxr-xr-xtools/http_server.py8
1 files changed, 6 insertions, 2 deletions
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()