diff options
author | Dirk Mueller <dirk@dmllr.de> | 2013-08-04 23:10:16 +0200 |
---|---|---|
committer | Morgan Fainberg <m@metacloud.com> | 2013-08-15 20:35:35 -0700 |
commit | dc5c33a9e52a062cd6742986f780a48ee2d6b383 (patch) | |
tree | 475b3f1c88a91a8c9769fe7daecd7466ebce8ee7 /keystoneclient/utils.py | |
parent | 0e11cf03cf833f5ad66a0b1b7bc488642dc93135 (diff) | |
download | python-keystoneclient-dc5c33a9e52a062cd6742986f780a48ee2d6b383.tar.gz |
Fix and enable Gating on H404
Enable gating on the Hacking H404 check - docstring
should start with a summary.
Change-Id: I80612a15bd11f689e9e9f4dc2ff812138630ddbd
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r-- | keystoneclient/utils.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py index f09e76e..12d9eea 100644 --- a/keystoneclient/utils.py +++ b/keystoneclient/utils.py @@ -113,10 +113,10 @@ def unauthenticated(f): def isunauthenticated(f): - """ - 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. + """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. """ return getattr(f, 'unauthenticated', False) @@ -135,9 +135,8 @@ def hash_signed_token(signed_text): 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 so the password + doesn't show up in the bash history. """ if not (hasattr(sys.stdin, 'isatty') and sys.stdin.isatty()): # nothing to do |