diff options
| author | Brant Knudson <bknudson@us.ibm.com> | 2015-06-23 19:45:57 -0500 |
|---|---|---|
| committer | Brant Knudson <bknudson@us.ibm.com> | 2015-08-06 14:44:12 -0500 |
| commit | b54d9f122c898ad8f5f36d0be39391feb13fa194 (patch) | |
| tree | eec39101e07ab8ab8453f9873ba1342a4e395e29 /keystoneclient/httpclient.py | |
| parent | eae8e83f5a7a170b98ef2d74a4ffd9eac7cc47ba (diff) | |
| download | python-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.py | 2 |
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. |
