From d739d531a111f8780c2183605b56c4e2352ec4a5 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 16 Aug 2012 22:03:58 +0200 Subject: [PATCH] [py3] Fixed a regression introduced in fcc8de0598. Thanks George Marshall for the report. --- django/core/servers/basehttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py index ce1558a924..19b287af87 100644 --- a/django/core/servers/basehttp.py +++ b/django/core/servers/basehttp.py @@ -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)