From 7119e29cb535426c587eaf2cfc2cfcd11a422df0 Mon Sep 17 00:00:00 2001 From: Dina Belova Date: Mon, 3 Jun 2013 17:44:55 +0400 Subject: Enable hacking H404 test. H404 - multi line docstring should start with a summary. Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd --- openstack/common/middleware/debug.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'openstack/common/middleware/debug.py') 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) -- cgit