summaryrefslogtreecommitdiff
path: root/keystoneclient/auth
diff options
context:
space:
mode:
authorlin-hua-cheng <os.lcheng@gmail.com>2016-01-13 13:03:51 -0800
committerlin-hua-cheng <os.lcheng@gmail.com>2016-01-13 13:03:51 -0800
commit77ed0d4d0c3413b15aa348613b8b40373bd5765b (patch)
tree01e67a56791a4575eb28ee25de46cd6111035bde /keystoneclient/auth
parent7327067f98f5e118790817f7c81e444c7fe7c25b (diff)
downloadpython-keystoneclient-77ed0d4d0c3413b15aa348613b8b40373bd5765b.tar.gz
Address hacking check H405
Previously, there were a string of commits to keystone that addresed ignored hacking checks. This commit does the same for H405 in keystoneclient. This also modifies our tox.ini so that we no longer ignore H405 violations. Change-Id: I2af152e5425a0e9c82314039fdbb90d661c22680 Closes-Bug: 1482773
Diffstat (limited to 'keystoneclient/auth')
-rw-r--r--keystoneclient/auth/identity/base.py40
-rw-r--r--keystoneclient/auth/identity/v3/base.py6
2 files changed, 28 insertions, 18 deletions
diff --git a/keystoneclient/auth/identity/base.py b/keystoneclient/auth/identity/base.py
index 3e5af6f..5737697 100644
--- a/keystoneclient/auth/identity/base.py
+++ b/keystoneclient/auth/identity/base.py
@@ -64,8 +64,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
@property
def username(self):
- """Deprecated as of the 1.7.0 release and may be removed in the 2.0.0
- release.
+ """Deprecated as of the 1.7.0 release.
+
+ It may be removed in the 2.0.0 release.
"""
warnings.warn(
@@ -76,8 +77,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
@username.setter
def username(self, value):
- """Deprecated as of the 1.7.0 release and may be removed in the 2.0.0
- release.
+ """Deprecated as of the 1.7.0 release.
+
+ It may be removed in the 2.0.0 release.
"""
warnings.warn(
@@ -88,8 +90,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
@property
def password(self):
- """Deprecated as of the 1.7.0 release and may be removed in the 2.0.0
- release.
+ """Deprecated as of the 1.7.0 release.
+
+ It may be removed in the 2.0.0 release.
"""
warnings.warn(
@@ -100,8 +103,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
@password.setter
def password(self, value):
- """Deprecated as of the 1.7.0 release and may be removed in the 2.0.0
- release.
+ """Deprecated as of the 1.7.0 release.
+
+ It may be removed in the 2.0.0 release.
"""
warnings.warn(
@@ -112,8 +116,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
@property
def token(self):
- """Deprecated as of the 1.7.0 release and may be removed in the 2.0.0
- release.
+ """Deprecated as of the 1.7.0 release.
+
+ It may be removed in the 2.0.0 release.
"""
warnings.warn(
@@ -124,8 +129,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
@token.setter
def token(self, value):
- """Deprecated as of the 1.7.0 release and may be removed in the 2.0.0
- release.
+ """Deprecated as of the 1.7.0 release.
+
+ It may be removed in the 2.0.0 release.
"""
warnings.warn(
@@ -136,8 +142,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
@property
def trust_id(self):
- """Deprecated as of the 1.7.0 release and may be removed in the 2.0.0
- release.
+ """Deprecated as of the 1.7.0 release.
+
+ It may be removed in the 2.0.0 release.
"""
warnings.warn(
@@ -148,8 +155,9 @@ class BaseIdentityPlugin(base.BaseAuthPlugin):
@trust_id.setter
def trust_id(self, value):
- """Deprecated as of the 1.7.0 release and may be removed in the 2.0.0
- release.
+ """Deprecated as of the 1.7.0 release.
+
+ It may be removed in the 2.0.0 release.
"""
warnings.warn(
diff --git a/keystoneclient/auth/identity/v3/base.py b/keystoneclient/auth/identity/v3/base.py
index a904fa9..43a0bd7 100644
--- a/keystoneclient/auth/identity/v3/base.py
+++ b/keystoneclient/auth/identity/v3/base.py
@@ -245,8 +245,10 @@ class AuthMethod(object):
@six.add_metaclass(abc.ABCMeta)
class AuthConstructor(Auth):
- """AuthConstructor is a means of creating an Auth Plugin that contains
- only one authentication method. This is generally the required usage.
+ """Abstract base class for creating an Auth Plugin.
+
+ The Auth Plugin created contains only one authentication method. This
+ is generally the required usage.
An AuthConstructor creates an AuthMethod based on the method's
arguments and the auth_method_class defined by the plugin. It then