0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

[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

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)