Permalink
Browse files

[py3] Fixed a regression introduced in fcc8de0.

Thanks George Marshall for the report.
  • Loading branch information...
1 parent 5c79dd5 commit d739d531a111f8780c2183605b56c4e2352ec4a5 @aaugustin aaugustin committed Aug 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/servers/basehttp.py
@@ -202,7 +202,7 @@ def log_message(self, format, *args):
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)

0 comments on commit d739d53

Please sign in to comment.