]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix bug:range() is not same in py3.x and py2.x
authorlizheming <lizheming.li@huawei.com>
Fri, 17 Jan 2014 03:58:42 +0000 (11:58 +0800)
committerlizheming <lizheming.li@huawei.com>
Tue, 11 Mar 2014 08:44:47 +0000 (16:44 +0800)
commit42683e17842fca91e8b6aecde08b726a3b24cda8
treeedd14b53f84de573b8f2c931c7d5d046b1fe6eb3
parente17a90347de2cc4eabf4a26b80c7fa4cb639e044
Fix bug:range() is not same in py3.x and py2.x

in python3.x, there is no method named xrange(),
it has replaced by range(),which is equal to xrange() in python2.x.
so we must fix this issue.we use six module to fix this issue.

Change-Id: I9cee3f0df2d8abbf6f66d7c5a3a0fed98df622e8
Closes-Bug: #1268439
24 files changed:
neutron/db/sqlalchemyutils.py
neutron/plugins/bigswitch/tests/test_server.py
neutron/plugins/brocade/vlanbm.py
neutron/plugins/cisco/db/n1kv_db_v2.py
neutron/plugins/hyperv/db.py
neutron/plugins/linuxbridge/db/l2network_db_v2.py
neutron/plugins/ml2/drivers/type_gre.py
neutron/plugins/ml2/drivers/type_vlan.py
neutron/plugins/mlnx/db/mlnx_db_v2.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/plugins/openvswitch/ovs_db_v2.py
neutron/services/loadbalancer/drivers/haproxy/cfg.py
neutron/tests/functional/agent/linux/test_async_process.py
neutron/tests/unit/bigswitch/test_router_db.py
neutron/tests/unit/cisco/n1kv/test_n1kv_db.py
neutron/tests/unit/linuxbridge/test_lb_db.py
neutron/tests/unit/ml2/test_type_gre.py
neutron/tests/unit/ml2/test_type_vxlan.py
neutron/tests/unit/mlnx/test_mlnx_db.py
neutron/tests/unit/nec/test_nec_agent.py
neutron/tests/unit/nec/test_trema_driver.py
neutron/tests/unit/openvswitch/test_ovs_db.py
neutron/tests/unit/services/loadbalancer/drivers/test_agent_driver_base.py
neutron/tests/unit/test_post_mortem_debug.py