mirror of
https://github.com/sprockets/sprockets.http.git
synced 2024-11-14 11:19:26 +00:00
Remove explicit object inheritance
This commit is contained in:
parent
78e063963d
commit
11bc7079c0
3 changed files with 6 additions and 6 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ from tornado import httpserver, ioloop
|
|||
import sprockets.http.app
|
||||
|
||||
|
||||
class Runner(object):
|
||||
class Runner:
|
||||
"""
|
||||
HTTP service runner.
|
||||
|
||||
|
|
Loading…
Reference in a new issue