Improve PEP8 gluon/rocket.py
This commit is contained in:
1 parent
af62288832
commit
6bbc75df2e
1 file changed
+5
-5
+5
-5
@@ -33,7 +33,7 @@ PY3K = sys.version_info[0] > 2
|
||||
|
||||
|
||||
class NullHandler(logging.Handler):
|
||||
"A Logging handler to prevent library errors."
|
||||
"""A Logging handler to prevent library errors."""
|
||||
def emit(self, record):
|
||||
pass
|
||||
|
||||
@@ -403,7 +403,7 @@ class WSGIExecutor(ThreadPoolExecutor):
|
||||
|
||||
|
||||
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):
|
||||
self.app = app
|
||||
self.executor = WSGIExecutor(threads)
|
||||
@@ -1515,17 +1515,17 @@ class Worker(Thread):
|
||||
|
||||
|
||||
class SocketTimeout(Exception):
|
||||
"Exception for when a socket times out between requests."
|
||||
"""Exception for when a socket times out between requests."""
|
||||
pass
|
||||
|
||||
|
||||
class BadRequest(Exception):
|
||||
"Exception for when a client sends an incomprehensible request."
|
||||
"""Exception for when a client sends an incomprehensible request."""
|
||||
pass
|
||||
|
||||
|
||||
class SocketClosed(Exception):
|
||||
"Exception for when a socket is closed by the client."
|
||||
"""Exception for when a socket is closed by the client."""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user