]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix various Python 3 issues
authorVictor Stinner <vstinner@redhat.com>
Fri, 2 Oct 2015 07:43:44 +0000 (09:43 +0200)
committerVictor Stinner <vstinner@redhat.com>
Fri, 2 Oct 2015 07:46:23 +0000 (09:46 +0200)
commit7cb54266294145c3b625dda1a66cd8686be4ccb6
tree3e6a75f85c74125650ec298b2d54a207833be917
parentc7255b6af17dbe516149ede3af8dd415a366dffd
Fix various Python 3 issues

* Drop exceptions import. Replace exceptions.OSError with OSError.
  The exceptions module was removed in Python 3.
* Replace 8l with 8
* Replace generator.next() with next(generator)
* convert_uuid_to_es_fmt(): use bytes
* Replace function.func_name with function.__name__

This change helps to run tests using "testr run" instead of
testtools.run.

Blueprint cinder-python3
Change-Id: I36476199ef336069669c5bc6cb5c285b21d8116b
cinder/tests/unit/backup/drivers/test_backup_posix.py
cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_api.py
cinder/volume/drivers/netapp/eseries/utils.py
cinder/volume/drivers/srb.py