mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #23919 -- Stopped inheriting from object to define new style classes.
This commit is contained in:
committed by
Claude Paroz
parent
a556396339
commit
cecc079168
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user