From 515a54f4b17382e20de8681d4082d6fa04c61e6e Mon Sep 17 00:00:00 2001 From: skseeker Date: Mon, 7 Mar 2016 21:59:51 +0530 Subject: [PATCH] urlparse is incompatible for python 3 Change-Id: Ie097bbde1abdef2165a5fe5404b6f4d83b292e5b --- vmware_nsx/nsxlib/v3/client.py | 2 +- vmware_nsx/nsxlib/v3/cluster.py | 2 +- vmware_nsx/tests/unit/nsx_v3/mocks.py | 2 +- vmware_nsx/tests/unit/nsxlib/v3/test_cluster.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vmware_nsx/nsxlib/v3/client.py b/vmware_nsx/nsxlib/v3/client.py index 0677e979f2..92800f214f 100644 --- a/vmware_nsx/nsxlib/v3/client.py +++ b/vmware_nsx/nsxlib/v3/client.py @@ -14,7 +14,7 @@ # under the License. # import requests -import urlparse +import six.moves.urllib.parse as urlparse from oslo_config import cfg from oslo_log import log diff --git a/vmware_nsx/nsxlib/v3/cluster.py b/vmware_nsx/nsxlib/v3/cluster.py index 381104021d..088cfcb085 100644 --- a/vmware_nsx/nsxlib/v3/cluster.py +++ b/vmware_nsx/nsxlib/v3/cluster.py @@ -22,7 +22,7 @@ import itertools import logging import requests import six -import urlparse +import six.moves.urllib.parse as urlparse from eventlet import greenpool from eventlet import pools diff --git a/vmware_nsx/tests/unit/nsx_v3/mocks.py b/vmware_nsx/tests/unit/nsx_v3/mocks.py index f4e84c4f6f..79c5d2249f 100644 --- a/vmware_nsx/tests/unit/nsx_v3/mocks.py +++ b/vmware_nsx/tests/unit/nsx_v3/mocks.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. import requests -import urlparse +import six.moves.urllib.parse as urlparse from oslo_serialization import jsonutils from oslo_utils import uuidutils diff --git a/vmware_nsx/tests/unit/nsxlib/v3/test_cluster.py b/vmware_nsx/tests/unit/nsxlib/v3/test_cluster.py index 290c5ee023..a1d9ec4d64 100644 --- a/vmware_nsx/tests/unit/nsxlib/v3/test_cluster.py +++ b/vmware_nsx/tests/unit/nsxlib/v3/test_cluster.py @@ -14,7 +14,7 @@ # under the License. # import mock -import urlparse +import six.moves.urllib.parse as urlparse from oslo_config import cfg from oslo_serialization import jsonutils