summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-16 22:03:58 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-16 22:04:50 +0200
commitd739d531a111f8780c2183605b56c4e2352ec4a5 (patch)
tree0de7eb089bc994367bfd2d3023b9af44c39c8e9e
parent5c79dd586534bc88ce7dc81c2d781c772d28b121 (diff)
[py3] Fixed a regression introduced in fcc8de0598.
Thanks George Marshall for the report.
-rw-r--r--django/core/servers/basehttp.py2
1 files changed, 1 insertions, 1 deletions
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)