]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use six to fix imports on Python 3
authorVictor Stinner <vstinner@redhat.com>
Mon, 25 May 2015 14:56:46 +0000 (16:56 +0200)
committerVictor Stinner <vstinner@redhat.com>
Thu, 11 Jun 2015 15:19:19 +0000 (17:19 +0200)
commitf484310fe6bb62a7fe22bbf1648aee10ea6ba2b7
tree28f19b9fea5d18170c1d302799f274426d1ab7f2
parent6feb65dcf4690f236afcf89bfd9509462c55befe
Use six to fix imports on Python 3

Replace Python 2 imports with six.moves import to make code compatible
with Python 2 and Python 3.

Replaced imports:

* BaseHTTPServer
* __builtin__
* cookielib
* httplib

This patch was generated by the six_moves operation of the sixer tool
version 0.4:
https://pypi.python.org/pypi/sixer

Manual changes:

* Disable pylint warnings on the HTTPSConnection classes because pylint
  doesn't support importing from six.moves yet, see:
  https://bitbucket.org/logilab/pylint/issue/550/

Blueprint cinder-python3
Change-Id: Ide6d4e3480f2c0a7eb4500aa88affe152ecc0401
19 files changed:
cinder/api/v1/limits.py
cinder/api/v2/limits.py
cinder/tests/unit/__init__.py
cinder/tests/unit/api/v1/test_limits.py
cinder/tests/unit/api/v2/test_limits.py
cinder/tests/unit/backup/drivers/test_backup_nfs.py
cinder/tests/unit/backup/fake_swift_client.py
cinder/tests/unit/backup/fake_swift_client2.py
cinder/tests/unit/test_api.py
cinder/tests/unit/test_netapp.py
cinder/tests/unit/test_netapp_ssc.py
cinder/tests/unit/test_prophetstor_dpl.py
cinder/volume/drivers/cloudbyte/cloudbyte.py
cinder/volume/drivers/emc/emc_vmax_https.py
cinder/volume/drivers/huawei/rest_common.py
cinder/volume/drivers/prophetstor/dplcommon.py
cinder/volume/drivers/zfssa/restclient.py
cinder/volume/drivers/zfssa/webdavclient.py
pylintrc