Skip to content

Commit

Permalink
python3: change call to urlparse
Browse files Browse the repository at this point in the history
partial: vmware#55
  • Loading branch information
kevin1024 authored and hartsock committed Jul 28, 2014
1 parent a96438c commit f93ddf9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyVmomi/SoapAdapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
import socket
import subprocess
import time

from six.moves.urllib.parse import urlparse
from datetime import datetime
from xml.parsers.expat import ParserCreate
# We have our own escape functionality.
# from xml.sax.saxutils import escape
Expand Down Expand Up @@ -1136,7 +1137,7 @@ def __init__(self, host='localhost', port=443, ns=None, path='/sdk',
# the UnixSocketConnection ctor expects to find it -- see above
self.host = sock
elif url:
scheme, self.host, urlpath = urlparse(url)[:3]
scheme, self.host, urlpath = urlparse.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 ('', '/'):
Expand Down

0 comments on commit f93ddf9

Please sign in to comment.