tests/dumbhttp.py
changeset 48946 642e31cb55f0
parent 48875 6000f5b25c9b
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
    35     def log_message(self, format, *args):
    35     def log_message(self, format, *args):
    36         httpserver.simplehttprequesthandler.log_message(self, format, *args)
    36         httpserver.simplehttprequesthandler.log_message(self, format, *args)
    37         sys.stderr.flush()
    37         sys.stderr.flush()
    38 
    38 
    39 
    39 
    40 class simplehttpservice(object):
    40 class simplehttpservice:
    41     def __init__(self, host, port):
    41     def __init__(self, host, port):
    42         self.address = (host, port)
    42         self.address = (host, port)
    43 
    43 
    44     def init(self):
    44     def init(self):
    45         self.httpd = simplehttpserver(self.address, _httprequesthandler)
    45         self.httpd = simplehttpserver(self.address, _httprequesthandler)