Fix N402 for nova/api

Fix N402 errors (single line docstring should end in a period)
for nova/api, part of a larger attempt to stop ignoring our own
hacking.py tests.

Fix tests that look at docs in extensions

Change-Id: I89d89d1fcf37c4e7740c36375da4c751d1b621ed
This commit is contained in:
Sean Dague
2013-01-08 16:14:49 -05:00
parent b9959b180e
commit f20c3a4ea5
63 changed files with 218 additions and 218 deletions

View File

@@ -76,7 +76,7 @@ class InjectContext(wsgi.Middleware):
class NovaKeystoneContext(wsgi.Middleware):
"""Make a request context from keystone headers"""
"""Make a request context from keystone headers."""
@webob.dec.wsgify(RequestClass=wsgi.Request)
def __call__(self, req):
@@ -128,7 +128,7 @@ class NovaKeystoneContext(wsgi.Middleware):
return self.application
def _get_roles(self, req):
"""Get the list of roles"""
"""Get the list of roles."""
if 'X_ROLES' in req.headers:
roles = req.headers.get('X_ROLES', '')