]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port drbdmanagedrv driver to Python 3
authorVictor Stinner <vstinner@redhat.com>
Mon, 29 Jun 2015 13:53:44 +0000 (15:53 +0200)
committerVictor Stinner <vstinner@redhat.com>
Tue, 30 Jun 2015 14:01:54 +0000 (16:01 +0200)
commit1fd911c1b679f29c5ad93c7810916ddc8e7146c9
treea4a1076a4c3f420eb402324fba908182e77e73e2
parentab2b966ea1ee2a268f65dc17d8c33477c3def271
Port drbdmanagedrv driver to Python 3

* Replace map() with a list-comprehension where a list is expected
* Replace apply(fn, args) with fn(*args)
* Use str.replace() to remove "{" and "}" characters in _clean_uuid(),
  instead of using str.translate()
* Use literal syntax to create a new dictionary instead of using
  dict() + dict.items()
* tox.ini: add cinder.tests.unit.test_drbdmanagedrv to Python 3.4

Blueprint cinder-python3
Change-Id: I4cb3ae422381442b778de024882e75f31eded5eb
cinder/tests/unit/test_drbdmanagedrv.py
cinder/volume/drivers/drbdmanagedrv.py
tox.ini