diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-06-11 18:43:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-06-11 18:43:09 +0000 |
| commit | 109e1b525dc96fd2d523dbc41c018ee975030e82 (patch) | |
| tree | c33556b56380515caca0219f49e4f2f69bb3dcb8 /openstack/common/middleware/debug.py | |
| parent | 165b98415d3949f8a9dddbdbc1f304fb7d257718 (diff) | |
| parent | 7119e29cb535426c587eaf2cfc2cfcd11a422df0 (diff) | |
| download | oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.tar.gz oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.tar.xz oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.zip | |
Merge "Enable hacking H404 test."
Diffstat (limited to 'openstack/common/middleware/debug.py')
| -rw-r--r-- | openstack/common/middleware/debug.py | 12 |
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) |
