annotate pythonServer-legacy.py @ 22:1f375b7d75fd tip

updated warning for breaks during test
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 13 May 2016 19:01:08 +0100
parents d2eb0e6ccaaf
children
rev   line source
giuliomoro@0 1 import SimpleHTTPServer
giuliomoro@0 2 import SocketServer
giuliomoro@0 3
giuliomoro@0 4 PORT = 8080
giuliomoro@0 5
giuliomoro@0 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
giuliomoro@0 7
giuliomoro@0 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
giuliomoro@0 9
giuliomoro@0 10 print "serving at port", PORT
giuliomoro@0 11 httpd.serve_forever()