~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ftp.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-24 00:22:22 UTC
  • mfrom: (1952.1.3 aftp-56472)
  • Revision ID: pqm@pqm.ubuntu.com-20060824002222-09d7139ba6ad0e6c
(ghozzy) fix aftp:// support bug #56472

Show diffs side-by-side

added added

removed removed

Lines of Context:
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, '', '', ''))
 
128
        proto = 'ftp'
 
129
        if self.is_active:
 
130
            proto = 'aftp'
 
131
        return urlparse.urlunparse((proto, netloc, path, '', '', ''))
129
132
 
130
133
    def _get_FTP(self):
131
134
        """Return the ftplib.FTP instance for this object."""