mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #23919 -- Stopped inheriting from object to define new style classes.
This commit is contained in:
parent
a556396339
commit
cecc079168
293 changed files with 512 additions and 514 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue