summaryrefslogtreecommitdiff
path: root/keystoneclient/utils.py
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/utils.py
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/utils.py')
-rw-r--r--keystoneclient/utils.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py
index 5017431..3152c59 100644
--- a/keystoneclient/utils.py
+++ b/keystoneclient/utils.py
@@ -134,7 +134,9 @@ def unauthenticated(f):
def isunauthenticated(f):
- """Checks to see if the function is marked as not requiring authentication
+ """Check if function requires authentication.
+
+ Checks to see if the function is marked as not requiring authentication
with the @unauthenticated decorator.
Returns True if decorator is set to True, False otherwise.
@@ -167,8 +169,10 @@ def prompt_user_password():
def prompt_for_password():
- """Prompt user for password if not provided so the password
- doesn't show up in the bash history.
+ """Prompt user for password if not provided.
+
+ Prompt is used so the password doesn't show up in the
+ bash history.
"""
if not (hasattr(sys.stdin, 'isatty') and sys.stdin.isatty()):
# nothing to do