~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ftp/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2012-03-13 17:25:29 UTC
  • mfrom: (6499 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6501.
  • Revision ID: v.ladeuil+lp@free.fr-20120313172529-i0suyjnepsor25i7
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
active, in which case aftp:// will be your friend.
26
26
"""
27
27
 
 
28
from __future__ import absolute_import
 
29
 
28
30
from cStringIO import StringIO
29
31
import ftplib
30
32
import getpass
96
98
        super(FtpTransport, self).__init__(base,
97
99
                                           _from_transport=_from_transport)
98
100
        self._unqualified_scheme = 'ftp'
99
 
        if self._scheme == 'aftp':
 
101
        if self._parsed_url.scheme == 'aftp':
100
102
            self.is_active = True
101
103
        else:
102
104
            self.is_active = False