/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2010-09-10 09:46:15 UTC
  • mfrom: (5417 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5418.
  • Revision ID: jelmer@samba.org-20100910094615-7soefxkmqroylqhj
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
        connection, credentials = self._create_connection(credentials)
171
171
        self._set_connection(connection, credentials)
172
172
 
 
173
    def disconnect(self):
 
174
        connection = self._get_connection()
 
175
        if connection is not None:
 
176
            connection.close()
 
177
 
173
178
    def _translate_ftp_error(self, err, path, extra=None,
174
179
                              unknown_exc=FtpPathError):
175
180
        """Try to translate an ftplib exception to a bzrlib exception.