summaryrefslogtreecommitdiffstats
path: root/openstack/common/middleware/debug.py
diff options
context:
space:
mode:
authorDina Belova <dbelova@mirantis.com>2013-06-03 17:44:55 +0400
committerDina Belova <dbelova@mirantis.com>2013-06-11 18:28:29 +0400
commit7119e29cb535426c587eaf2cfc2cfcd11a422df0 (patch)
treeee61f4db5c8ef559a9c50c5c501fb6c421f41fa0 /openstack/common/middleware/debug.py
parentebaa578351c9c6b47c2f28ef6d74451e1483036b (diff)
downloadoslo-7119e29cb535426c587eaf2cfc2cfcd11a422df0.tar.gz
oslo-7119e29cb535426c587eaf2cfc2cfcd11a422df0.tar.xz
oslo-7119e29cb535426c587eaf2cfc2cfcd11a422df0.zip
Enable hacking H404 test.
H404 - multi line docstring should start with a summary. Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd
Diffstat (limited to 'openstack/common/middleware/debug.py')
-rw-r--r--openstack/common/middleware/debug.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/openstack/common/middleware/debug.py b/openstack/common/middleware/debug.py
index b92af11..f0f6b90 100644
--- a/openstack/common/middleware/debug.py
+++ b/openstack/common/middleware/debug.py
@@ -24,9 +24,10 @@ from openstack.common.middleware import base
class Debug(base.Middleware):
- """
- Helper class that can be inserted into any WSGI application chain
- to get information about the request and response.
+ """Helper class that returns debug information.
+
+ Can be inserted into any WSGI application chain to get information about
+ the request and response.
"""
@webob.dec.wsgify
@@ -48,10 +49,7 @@ class Debug(base.Middleware):
@staticmethod
def print_generator(app_iter):
- """
- Iterator that prints the contents of a wrapper string iterator
- when iterated.
- """
+ """Prints the contents of a wrapper string iterator when iterated."""
print(("*" * 40) + " BODY")
for part in app_iter:
sys.stdout.write(part)