/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 breezy/transport/ftp/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
import stat
37
37
import time
38
38
 
39
 
from brzlib import (
 
39
from breezy import (
40
40
    config,
41
41
    errors,
42
42
    osutils,
43
43
    urlutils,
44
44
    )
45
 
from brzlib.symbol_versioning import (
 
45
from breezy.symbol_versioning import (
46
46
    DEPRECATED_PARAMETER,
47
47
    deprecated_in,
48
48
    deprecated_passed,
49
49
    warn,
50
50
    )
51
 
from brzlib.trace import mutter, warning
52
 
from brzlib.transport import (
 
51
from breezy.trace import mutter, warning
 
52
from breezy.transport import (
53
53
    AppendBasedFileStream,
54
54
    ConnectedTransport,
55
55
    _file_streams,
179
179
 
180
180
    def _translate_ftp_error(self, err, path, extra=None,
181
181
                              unknown_exc=FtpPathError):
182
 
        """Try to translate an ftplib exception to a brzlib exception.
 
182
        """Try to translate an ftplib exception to a breezy exception.
183
183
 
184
184
        :param err: The error to translate into a bzr error
185
185
        :param path: The path which had problems
546
546
                unknown_exc=errors.NoSuchFile)
547
547
 
548
548
    def external_url(self):
549
 
        """See brzlib.transport.Transport.external_url."""
 
549
        """See breezy.transport.Transport.external_url."""
550
550
        # FTP URL's are externally usable.
551
551
        return self.base
552
552
 
638
638
 
639
639
def get_test_permutations():
640
640
    """Return the permutations to be used in testing."""
641
 
    from brzlib.tests import ftp_server
 
641
    from breezy.tests import ftp_server
642
642
    return [(FtpTransport, ftp_server.FTPTestServer)]