Refs #23919 -- Stopped inheriting from object to define new style classes.

This commit is contained in:
Simon Charette 2017-01-19 02:39:46 -05:00 committed by Claude Paroz
parent a556396339
commit cecc079168
293 changed files with 512 additions and 514 deletions

View file

@ -9,7 +9,7 @@ from wsgiref import simple_server
MAX_SOCKET_CHUNK_SIZE = 32 * 1024 * 1024 # 32 MB
class ServerHandler(simple_server.ServerHandler, object):
class ServerHandler(simple_server.ServerHandler):
error_status = str("500 INTERNAL SERVER ERROR")
def write(self, data):
@ -38,7 +38,7 @@ class ServerHandler(simple_server.ServerHandler, object):
return ['\n'.join(traceback.format_exception(*sys.exc_info()))]
class DummyHandler(object):
class DummyHandler:
def log_request(self, *args, **kwargs):
pass