summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/core/servers/basehttp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py
index 5af226f31f..600d9eb32a 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():