125
125
netloc = '%s@%s' % (urllib.quote(self._username), netloc)
126
126
if self._port is not None:
127
127
netloc = '%s:%d' % (netloc, self._port)
128
return urlparse.urlunparse(('ftp', netloc, path, '', '', ''))
131
return urlparse.urlunparse((proto, netloc, path, '', '', ''))
131
134
"""Return the ftplib.FTP instance for this object."""