Remove explicit object inheritance

This commit is contained in:
Andrew Rabert 2018-11-26 18:53:29 -05:00
parent 78e063963d
commit 11bc7079c0
3 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ import sys
from tornado import concurrent, web
class _ShutdownHandler(object):
class _ShutdownHandler:
"""Keeps track of the application state during shutdown."""
def __init__(self, io_loop):
@ -48,7 +48,7 @@ class _ShutdownHandler(object):
self.logger.info('stopped IOLoop')
class CallbackManager(object):
class CallbackManager:
"""
Application state management.

View file

@ -17,7 +17,7 @@ def _get_http_reason(status_code):
return httputil.responses.get(status_code, 'Unknown')
class LoggingHandler(object):
class LoggingHandler:
"""
Add ``self.logger``.
@ -37,7 +37,7 @@ class LoggingHandler(object):
self.logger = logging.getLogger(self.__class__.__name__)
class ErrorLogger(LoggingHandler, object):
class ErrorLogger(LoggingHandler):
"""
Log a message in ``send_error``.
@ -74,7 +74,7 @@ class ErrorLogger(LoggingHandler, object):
super(ErrorLogger, self).write_error(status_code, **kwargs)
class ErrorWriter(object):
class ErrorWriter:
"""
Write error bodies out consistently.

View file

@ -16,7 +16,7 @@ from tornado import httpserver, ioloop
import sprockets.http.app
class Runner(object):
class Runner:
"""
HTTP service runner.