view pythonServer-legacy.py @ 2128:098aaf69bdbe

Bug #1620: Defaults to Europe/London timezone.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 23 Feb 2016 16:57:06 +0000
parents d9b9f707f862
children
line wrap: on
line source
import SimpleHTTPServer
import SocketServer

PORT = 8080

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()