From 4ee06ec3fc8e94d164afbd2f9c880c60c658a9ac Mon Sep 17 00:00:00 2001 From: Andreas Pelme Date: Fri, 2 Jan 2015 12:58:22 +0100 Subject: [PATCH] Fixed #24069 -- Made ServerHandler a new style class to fix super() call. --- django/core/servers/basehttp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py index 5af226f31fb..600d9eb32af 100644 --- a/django/core/servers/basehttp.py +++ b/django/core/servers/basehttp.py @@ -87,7 +87,8 @@ class WSGIServer(simple_server.WSGIServer, object): super(WSGIServer, self).handle_error(request, client_address) -class ServerHandler(simple_server.ServerHandler): +# Inheriting from object required on Python 2. +class ServerHandler(simple_server.ServerHandler, object): def handle_error(self): # Ignore broken pipe errors, otherwise pass on if not is_broken_pipe_error():