All pastes #2090921 Raw Edit

Miscellany

public text v1 · immutable
#2090921 ·published 2011-10-17 22:42 UTC
rendered paste body
import os

def run(server_class=BaseHTTPServer.HTTPServer,
        handler_class=BaseHTTPServer.BaseHTTPRequestHandler):
    server_address = ('', 8000)
    httpd = server_class(server_address, handler_class)
    httpd.server_forever()