summaryrefslogtreecommitdiff
path: root/keystoneclient/httpclient.py
diff options
context:
space:
mode:
authorBrant Knudson <bknudson@us.ibm.com>2015-06-23 19:45:57 -0500
committerBrant Knudson <bknudson@us.ibm.com>2015-08-06 14:44:12 -0500
commitb54d9f122c898ad8f5f36d0be39391feb13fa194 (patch)
treeeec39101e07ab8ab8453f9873ba1342a4e395e29 /keystoneclient/httpclient.py
parenteae8e83f5a7a170b98ef2d74a4ffd9eac7cc47ba (diff)
downloadpython-keystoneclient-b54d9f122c898ad8f5f36d0be39391feb13fa194.tar.gz
Stop using .keys() on dicts where not needed
Iterating over a dict results in the keys. Using the 'in' operator on a dict checks if it's a key. Change-Id: I6affbfa1a79a9e8c0b5b304078a7a8e4e792eecd
Diffstat (limited to 'keystoneclient/httpclient.py')
-rw-r--r--keystoneclient/httpclient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/httpclient.py b/keystoneclient/httpclient.py
index c663535..85fd1ea 100644
--- a/keystoneclient/httpclient.py
+++ b/keystoneclient/httpclient.py
@@ -579,7 +579,7 @@ class HTTPClient(baseclient.Client, base.BaseAuthPlugin):
Returns a slash-separated string of values ordered by key name.
"""
- return '/'.join([kwargs[k] or '?' for k in sorted(kwargs.keys())])
+ return '/'.join([kwargs[k] or '?' for k in sorted(kwargs)])
def get_auth_ref_from_keyring(self, **kwargs):
"""Retrieve auth_ref from keyring.