* Replace "c = dict(a.items() + b.items())" with "c = dict(a); c.update(b)". It works on Python 2 and Python 3, and it may be a little bit more efficient on Python 2 (no need to create a temporary list of items). * Replace "dict.values() + dict.values()" with "list(dict.values()) + list(dict.values())": on Python 3, dict.values() is a view which doesn't support a+b operator. Change-Id: Id5a65628fe2fb7a02c713b758fcaa81154db28a0
9.0 KiB
9.0 KiB