diff options
author | Dina Belova <dbelova@mirantis.com> | 2013-06-03 17:44:55 +0400 |
---|---|---|
committer | Dina Belova <dbelova@mirantis.com> | 2013-06-11 18:28:29 +0400 |
commit | 7119e29cb535426c587eaf2cfc2cfcd11a422df0 (patch) | |
tree | ee61f4db5c8ef559a9c50c5c501fb6c421f41fa0 /openstack/common/middleware/context.py | |
parent | ebaa578351c9c6b47c2f28ef6d74451e1483036b (diff) | |
download | oslo-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/context.py')
-rw-r--r-- | openstack/common/middleware/context.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/openstack/common/middleware/context.py b/openstack/common/middleware/context.py index 2636e8e..542e71e 100644 --- a/openstack/common/middleware/context.py +++ b/openstack/common/middleware/context.py @@ -30,9 +30,7 @@ class ContextMiddleware(base.Middleware): super(ContextMiddleware, self).__init__(app) def make_context(self, *args, **kwargs): - """ - Create a context with the given arguments. - """ + """Create a context with the given arguments.""" # Determine the context class to use ctxcls = context.RequestContext @@ -42,7 +40,8 @@ class ContextMiddleware(base.Middleware): return ctxcls(*args, **kwargs) def process_request(self, req): - """ + """Process the request. + Extract any authentication information in the request and construct an appropriate context from it. """ @@ -52,9 +51,7 @@ class ContextMiddleware(base.Middleware): def filter_factory(global_conf, **local_conf): - """ - Factory method for paste.deploy - """ + """Factory method for paste.deploy.""" conf = global_conf.copy() conf.update(local_conf) |