]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port zonemanager to Python 3
authorVictor Stinner <vstinner@redhat.com>
Tue, 24 Nov 2015 16:33:37 +0000 (17:33 +0100)
committerVictor Stinner <vstinner@redhat.com>
Tue, 24 Nov 2015 20:00:09 +0000 (21:00 +0100)
commitb2050e4a08d5ba0b54b4fba67eded25653e79481
tree6d39472ea5e17038e77747d8887d3f60872075e6
parent6b6863703aed627c65a65a807fadca2ae5ac91e3
Port zonemanager to Python 3

* Replace xrange() with six.moves.range()
* Replace filter() with list-comprehension to get a list on Python 3.
* get_formatted_wwn(): join byte strings with b':' instead of ':'
* ZoneManager: don't pass arguments to object.__new__()
* tests-py3.txt: add zonemanager tests

Partial-Implements: blueprint cinder-python3
Change-Id: Ia3fcd816c5afd7a08b8769fbc9d2839b70c8c3fb
cinder/tests/unit/zonemanager/test_cisco_fc_zone_client_cli.py
cinder/zonemanager/drivers/brocade/brcd_fc_san_lookup_service.py
cinder/zonemanager/drivers/brocade/brcd_fc_zone_driver.py
cinder/zonemanager/drivers/cisco/cisco_fc_san_lookup_service.py
cinder/zonemanager/fc_zone_manager.py
tests-py3.txt