From bf8f99e0d719d0b905562e00cef5b08c20d060e3 Mon Sep 17 00:00:00 2001 From: april Date: Tue, 29 Dec 2015 01:30:44 +0800 Subject: [PATCH] Fix some inconsistency in docstrings Added colon after ":returns" according to: http://docs.openstack.org/developer/hacking blank lines are added before the param lines Change-Id: Icfce30824be23a4b221900e49c33fe8b346efa18 --- heat/common/cache.py | 3 ++- heat/common/custom_backend_auth.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/heat/common/cache.py b/heat/common/cache.py index c8baaa7bd..7e669fbce 100644 --- a/heat/common/cache.py +++ b/heat/common/cache.py @@ -27,8 +27,9 @@ def register_cache_configurations(conf): The procedure registers all configurations required for oslo.cache. It should be called before configuring of cache region + :param conf: instance of heat configuration - :return updated heat configuration + :returns: updated heat configuration """ # register global configurations for caching in heat core.configure(conf) diff --git a/heat/common/custom_backend_auth.py b/heat/common/custom_backend_auth.py index 935b405fd..1590f02aa 100644 --- a/heat/common/custom_backend_auth.py +++ b/heat/common/custom_backend_auth.py @@ -51,7 +51,7 @@ class AuthProtocol(object): :param env: wsgi request environment :param start_response: wsgi response callback - :returns HTTPUnauthorized http response + :returns: HTTPUnauthorized http response """ resp = webob.exc.HTTPUnauthorized(_("Backend authentication failed"), [])