mirror of https://github.com/django/django.git
Fixed #24069 -- Made ServerHandler a new style class to fix super() call.
This commit is contained in:
parent
40ccef16cb
commit
4ee06ec3fc
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue