diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-01-28 23:25:30 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-01-28 23:25:30 +0000 |
commit | e06bb53064d5c4531253da4277ffe1fc12a8242a (patch) | |
tree | 3dbe007f80c8f54569f47bf21ebc2802c3acd8c0 /trove/common/utils.py | |
parent | 23a682b89d0632732aead6345c189d88ad040eb8 (diff) | |
parent | 0ee91a5854830736c8e6ea5d140bcf3ce965fa3c (diff) | |
download | trove-e06bb53064d5c4531253da4277ffe1fc12a8242a.tar.gz |
Merge "Use dict comprehensions instead of dict constructor"
Diffstat (limited to 'trove/common/utils.py')
-rw-r--r-- | trove/common/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/trove/common/utils.py b/trove/common/utils.py index c023577b..3fbc5c08 100644 --- a/trove/common/utils.py +++ b/trove/common/utils.py @@ -70,14 +70,14 @@ def create_method_args_string(*args, **kwargs): def stringify_keys(dictionary): if dictionary is None: return None - return dict((str(key), value) for key, value in dictionary.iteritems()) + return {str(key): value for key, value in dictionary.iteritems()} def exclude(key_values, *exclude_keys): if key_values is None: return None - return dict((key, value) for key, value in key_values.iteritems() - if key not in exclude_keys) + return {key: value for key, value in key_values.iteritems() + if key not in exclude_keys} def generate_uuid(): |