blind review on list-operations added by 2to3:
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 14 Oct 2015 08:54:20 +0000 (10:54 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 14 Oct 2015 09:04:12 +0000 (11:04 +0200)
commitb4af9a40867beff8660612fe20d3838cb375f159
treeee8ca0ef6f519707b1f6cbf6808325dd2c9d8636
parentb3292d8429f07d0e9d21a3ec2d81dbc4b18332d1
blind review on list-operations added by 2to3:
* some calls to list() were not needed
* some where linked to map() and replaced by [ for ]
* some constructions like for i in range(len(myiter)): were replaced by for item in myiter (and in rare cases together with enumerate)
* sometimes for k in d.keys() -> for k in d:
the plan is to will leave items() and values() and keys() in the code for both py2 and py3 ultimately, so no changes there in this commit
31 files changed:
examples/ccn_emu_live/dce.py
examples/ccn_emu_live/dce_4_nodes_linear.py
examples/ccn_emu_live/planetlab.py
examples/ccn_emu_live/planetlab_4_nodes_linear.py
examples/linux/testing/ccncat_extended_ring_topo.py
examples/omf/testing/nepi_omf5_nitos_ccnring.py
examples/omf/testing/nepi_omf5_plexus_ccncat_linear.py
examples/openvswitch/ovs_ping_3_switches.py
examples/planetlab/update_fedora_repo.py
src/nepi/data/processing/ccn/parser.py
src/nepi/resources/linux/application.py
src/nepi/resources/linux/node.py
src/nepi/resources/linux/scripts/tunchannel.py
src/nepi/resources/netns/netnswrapper.py
src/nepi/resources/netns/netnswrapper_debug.py
src/nepi/resources/ns3/ns3base.py
src/nepi/resources/ns3/ns3server.py
src/nepi/resources/ns3/ns3wifimac.py
src/nepi/resources/ns3/ns3wrapper.py
src/nepi/resources/ns3/ns3wrapper_debug.py
src/nepi/resources/omf/messages_6.py
src/nepi/resources/omf/omf6_parser.py
src/nepi/resources/omf/wilabt_node.py
src/nepi/resources/planetlab/plcapi.py
src/nepi/resources/planetlab/sfa_node.py
src/nepi/util/environ.py
src/nepi/util/execfuncs.py
src/nepi/util/parsers/xml_parser.py
src/nepi/util/sfaapi.py
src/nepi/util/sfarspec_proc.py
src/nepi/util/sshfuncs.py