1
0
mirror of https://github.com/django/django.git synced 2025-01-26 18:19:18 +00:00

Fixed #24069 -- Made ServerHandler a new style class to fix super() call.

This commit is contained in:
Andreas Pelme 2015-01-02 12:58:22 +01:00 committed by Tim Graham
parent 40ccef16cb
commit 4ee06ec3fc

View File

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