summaryrefslogtreecommitdiff
path: root/keystoneclient/httpclient.py
diff options
context:
space:
mode:
authorNavid Pustchi <npustchi@gmail.com>2016-05-04 19:14:01 +0000
committerNavid Pustchi <npustchi@gmail.com>2016-05-04 19:47:14 +0000
commit01500be7fb8d4fdf6d072a1eacf4df87abe86c8c (patch)
tree0dc74328f8e8104acdc60e72e81b44e985f4ed0f /keystoneclient/httpclient.py
parent4c180e691fe1deed3b253016c28e8f6987436074 (diff)
downloadpython-keystoneclient-01500be7fb8d4fdf6d072a1eacf4df87abe86c8c.tar.gz
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
Diffstat (limited to 'keystoneclient/httpclient.py')
-rw-r--r--keystoneclient/httpclient.py2
1 files changed, 2 insertions, 0 deletions
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