Files
swift/test/unit/common/middleware/test_gatekeeper.py
Victor Stinner 5677a04c8f Python 3: Fix usage of dict methods
* 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
2016-07-25 15:14:06 +02:00

9.0 KiB