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/base.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'openstack/common/middleware/base.py') diff --git a/openstack/common/middleware/base.py b/openstack/common/middleware/base.py index 624a391..7236731 100644 --- a/openstack/common/middleware/base.py +++ b/openstack/common/middleware/base.py @@ -18,18 +18,16 @@ import webob.dec class Middleware(object): - """ - Base WSGI middleware wrapper. These classes require an application to be - initialized that will be called next. By default the middleware will - simply call its wrapped app, or you can override __call__ to customize its - behavior. + """Base WSGI middleware wrapper. + + These classes require an application to be initialized that will be called + next. By default the middleware will simply call its wrapped app, or you + can override __call__ to customize its behavior. """ @classmethod def factory(cls, global_conf, **local_conf): - """ - Factory method for paste.deploy - """ + """Factory method for paste.deploy.""" def filter(app): return cls(app) @@ -40,8 +38,7 @@ class Middleware(object): self.application = application def process_request(self, req): - """ - Called on each request. + """Called on each request. If this returns None, the next application down the stack will be executed. If it returns a response then that response will be returned -- cgit