Fix a python3 porting error for urlparse.

Removing extra urlparse from the method call.
This commit is contained in:
Tianhao He 2015-11-12 13:43:17 -08:00
parent e0ca3073b9
commit 611aca51f1

View File

@ -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 ('', '/'):