Improve PEP8 gluon/rocket.py

This commit is contained in:
Hardirc
2015-03-06 22:20:22 -05:00
parent af62288832
commit 6bbc75df2e
+5 -5
View File
@@ -33,7 +33,7 @@ PY3K = sys.version_info[0] > 2
class NullHandler(logging.Handler): class NullHandler(logging.Handler):
"A Logging handler to prevent library errors." """A Logging handler to prevent library errors."""
def emit(self, record): def emit(self, record):
pass pass
@@ -403,7 +403,7 @@ class WSGIExecutor(ThreadPoolExecutor):
class FuturesMiddleware(object): class FuturesMiddleware(object):
"Futures middleware that adds a Futures Executor to the environment" """Futures middleware that adds a Futures Executor to the environment"""
def __init__(self, app, threads=5): def __init__(self, app, threads=5):
self.app = app self.app = app
self.executor = WSGIExecutor(threads) self.executor = WSGIExecutor(threads)
@@ -1515,17 +1515,17 @@ class Worker(Thread):
class SocketTimeout(Exception): class SocketTimeout(Exception):
"Exception for when a socket times out between requests." """Exception for when a socket times out between requests."""
pass pass
class BadRequest(Exception): class BadRequest(Exception):
"Exception for when a client sends an incomprehensible request." """Exception for when a client sends an incomprehensible request."""
pass pass
class SocketClosed(Exception): class SocketClosed(Exception):
"Exception for when a socket is closed by the client." """Exception for when a socket is closed by the client."""
pass pass