From 01500be7fb8d4fdf6d072a1eacf4df87abe86c8c Mon Sep 17 00:00:00 2001 From: Navid Pustchi Date: Wed, 4 May 2016 19:14:01 +0000 Subject: Fixing D105 PEP257 Currently tox ignores D105. D105: Missing docstring in magic method. This change removes it and make keystoneclient docstring compliant with it. Change-Id: I34dfc164891880425f542f8f8aa3426ec8640c96 --- keystoneclient/httpclient.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'keystoneclient/httpclient.py') diff --git a/keystoneclient/httpclient.py b/keystoneclient/httpclient.py index 96f33b0..28b8422 100644 --- a/keystoneclient/httpclient.py +++ b/keystoneclient/httpclient.py @@ -868,6 +868,7 @@ class HTTPClient(baseclient.Client, base.BaseAuthPlugin): deprecated_adapter_variables = {'region_name': None} def __getattr__(self, name): + """Fetch deprecated session variables.""" try: var_name = self.deprecated_session_variables[name] except KeyError: # nosec(cjschaef): try adapter variable or raise @@ -894,6 +895,7 @@ class HTTPClient(baseclient.Client, base.BaseAuthPlugin): raise AttributeError(_("Unknown Attribute: %s") % name) def __setattr__(self, name, val): + """Assign value to deprecated seesion variables.""" try: var_name = self.deprecated_session_variables[name] except KeyError: # nosec(cjschaef): try adapter variable or call -- cgit v1.2.1