annotate pythonServer-legacy.py @ 1199:29eaafbe6248

Bug #1584 Fix.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 22 Feb 2016 12:51:14 +0000
parents ddc5a639179a
children
rev   line source
n@1115 1 import SimpleHTTPServer
n@1115 2 import SocketServer
n@1115 3
n@1115 4 PORT = 8080
n@1115 5
n@1115 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
n@1115 7
n@1115 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
n@1115 9
n@1115 10 print "serving at port", PORT
n@1115 11 httpd.serve_forever()