diff options
author | Victor Stinner <victor.stinner@enovance.com> | 2014-03-24 18:17:44 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@enovance.com> | 2014-03-24 18:17:44 +0100 |
commit | 6d5a4749b5df9101dd5872987d3458b4d9c0df8a (patch) | |
tree | 8999a6883cdba020ff7ba7644d87e3fe9d4093e9 /swiftclient/client.py | |
parent | 070dd48c315b63e9ba75fc1020922222c985b194 (diff) | |
download | python-swiftclient-6d5a4749b5df9101dd5872987d3458b4d9c0df8a.tar.gz |
Python 3: cast map() result to list
On Python 3, map() returns a generator, not a list. Cast explicitly the result
of map() to a list to get a list on Python 2 and Python 3.
The cast is useless in Python 2, but it doesn't hurt performances: it's just a
unit test.
Change-Id: I87486b7dbc42507a6fd7886748a2e09735b6fc5b
Diffstat (limited to 'swiftclient/client.py')
0 files changed, 0 insertions, 0 deletions