view pythonServer-legacy.py @ 1443:bbfcb31c37e4

Bug #1502: Any parser XML errors will show the error and halt the rest of the loading.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 18 Dec 2015 18:28:06 +0000
parents 4a0c4119e00d
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()