~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/__init__.py

  • Committer: Martin Packman
  • Date: 2011-10-14 18:42:17 UTC
  • mto: This revision was merged to the branch mainline in revision 6235.
  • Revision ID: martin.packman@canonical.com-20111014184217-2fmnziqqo4duhgbz
Remove unneeded _LRUNode.cleanup callback ability and deprecate LRUCache.add

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    )
26
26
from bzrlib.bundle import serializer as _serializer
27
27
from bzrlib.merge_directive import MergeDirective
 
28
from bzrlib.i18n import gettext
28
29
""")
29
30
from bzrlib.trace import note
30
31
 
53
54
        url, filename = urlutils.split(exception.target,
54
55
                                       exclude_trailing_slash=False)
55
56
        if not filename:
56
 
            raise errors.NotABundle('A directory cannot be a bundle')
57
 
        return _mod_transport.get_transport(url)
 
57
            raise errors.NotABundle(gettext('A directory cannot be a bundle'))
 
58
        return _mod_transport.get_transport_from_url(url)
58
59
 
59
60
    try:
60
61
        bytef, transport = _mod_transport.do_catching_redirections(