mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #24069 -- Made ServerHandler a new style class to fix super() call.
This commit is contained in:
parent
40ccef16cb
commit
4ee06ec3fc
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue