From 611aca51f1a4885b1842903bf48392d9c4936f25 Mon Sep 17 00:00:00 2001 From: Tianhao He Date: Thu, 12 Nov 2015 13:43:17 -0800 Subject: [PATCH] Fix a python3 porting error for urlparse. Removing extra urlparse from the method call. --- pyVmomi/SoapAdapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyVmomi/SoapAdapter.py b/pyVmomi/SoapAdapter.py index 9683e5c..8c04499 100644 --- a/pyVmomi/SoapAdapter.py +++ b/pyVmomi/SoapAdapter.py @@ -1178,7 +1178,7 @@ class SoapStubAdapter(SoapStubAdapterBase): # the UnixSocketConnection ctor expects to find it -- see above self.host = sock elif url: - scheme, self.host, urlpath = urlparse.urlparse(url)[:3] + scheme, self.host, urlpath = urlparse(url)[:3] # Only use the URL path if it's sensible, otherwise use the path # keyword argument as passed in. if urlpath not in ('', '/'):