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/auth/identity/v3/base.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/auth/identity/v3/base.py')
-rw-r--r-- | keystoneclient/auth/identity/v3/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/auth/identity/v3/base.py b/keystoneclient/auth/identity/v3/base.py index 784bd96..31cab8b 100644 --- a/keystoneclient/auth/identity/v3/base.py +++ b/keystoneclient/auth/identity/v3/base.py @@ -218,7 +218,7 @@ class AuthMethod(object): setattr(self, param, kwargs.pop(param, None)) if kwargs: - msg = _("Unexpected Attributes: %s") % ", ".join(kwargs.keys()) + msg = _("Unexpected Attributes: %s") % ", ".join(kwargs) raise AttributeError(msg) @classmethod |