view pythonServer-legacy.py @ 1184:a19d06d13ab0

Safari does not support Views having the forEach function. Implemented work around.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 15 Feb 2016 13:48:24 +0000
parents c44fbf72f7f2
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()