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
1 changed files with 2 additions and 1 deletions

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