turning HTTPrettyRequest into a new-style class

This commit is contained in:
Gabriel Falcao
2012-11-08 14:49:19 -05:00
parent 44cc59525a
commit 0ba3ff6465

View File

@@ -75,7 +75,7 @@ def utf8(s):
return str(s)
class HTTPrettyRequest(BaseHTTPRequestHandler):
class HTTPrettyRequest(BaseHTTPRequestHandler, object):
def __init__(self, headers, body=''):
self.body = utf8(body)
self.raw_headers = utf8(headers)