diff options
author | Joshua Harlow <harlowja@gmail.com> | 2015-09-27 22:21:25 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2015-09-27 22:21:25 -0700 |
commit | 327c7e695e6a292e7461e9ddd2be3ffaf570f5d9 (patch) | |
tree | 8117a3263402b20beda87d6c40e9d90de1ee537b /redis/client.py | |
parent | 03ac9e242f84a1a4b1ddd95fe84be4043c5666e1 (diff) | |
download | redis-py-327c7e695e6a292e7461e9ddd2be3ffaf570f5d9.tar.gz |
Avoid needlessly making temporary lists to merge dict(s) together
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index 7c6a329..902ccc9 100755 --- a/redis/client.py +++ b/redis/client.py @@ -59,7 +59,8 @@ def string_keys_to_dict(key_string, callback): def dict_merge(*dicts): merged = {} - [merged.update(d) for d in dicts] + for d in dicts: + merged.update(d) return merged |