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():