[ovs-git] [openvswitch/ovs] cb96c1: python: Convert dict iterators.
GitHub
noreply at github.com
Fri Jan 22 04:00:30 UTC 2016
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: cb96c1b27e502c591eeeb831f04d92b400d757f4
https://github.com/openvswitch/ovs/commit/cb96c1b27e502c591eeeb831f04d92b400d757f4
Author: Russell Bryant <russell at ovn.org>
Date: 2016-01-21 (Thu, 21 Jan 2016)
Changed paths:
M debian/ovs-monitor-ipsec
M python/build/nroff.py
M python/ovs/db/data.py
M python/ovs/db/idl.py
M python/ovs/db/schema.py
M python/ovs/json.py
M python/ovs/poller.py
M python/ovs/stream.py
M python/ovs/vlog.py
M tests/test-ovsdb.py
M vtep/ovs-vtep
M xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync
Log Message:
-----------
python: Convert dict iterators.
In Python 2, dict.items(), dict.keys(), and dict.values() returned a
list. dict.iteritems(), dict.iterkeys(), and dict.itervalues() returned
an iterator.
As of Python 3, dict.iteritems(), dict.itervalues(), and dict.iterkeys()
are gone. items(), keys(), and values() now return an iterator.
In the case where we want an iterator, we now use the six.iter*()
helpers. If we want a list, we explicitly create a list from the
iterator.
Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>
More information about the git
mailing list