[py3] Fixed a regression introduced in fcc8de0598.

Thanks George Marshall for the report.
This commit is contained in:
Aymeric Augustin 2012-08-16 22:03:58 +02:00
parent 5c79dd5865
commit d739d531a1
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ class WSGIRequestHandler(simple_server.WSGIRequestHandler, object):
def run(addr, port, wsgi_handler, ipv6=False, threading=False):
server_address = (addr, port)
if threading:
httpd_cls = type('WSGIServer', (socketserver.ThreadingMixIn, WSGIServer), {})
httpd_cls = type(str('WSGIServer'), (socketserver.ThreadingMixIn, WSGIServer), {})
else:
httpd_cls = WSGIServer
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)