/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/bundle/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-06-20 02:32:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1802.
  • Revision ID: aaron.bentley@utoronto.ca-20060620023224-745f7801d2ef3ac5
Move BundleReader into v07 serializer

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import bzrlib.errors as errors
18
18
import bzrlib.urlutils
19
19
import bzrlib.transport
20
 
import bzrlib.bundle.read_bundle
 
20
from bzrlib.bundle.serializer import read_bundle as read_bundle1
21
21
 
22
22
 
23
23
def read_bundle_from_url(url):
38
38
    try:
39
39
        t = bzrlib.transport.get_transport(url)
40
40
        f = t.get(filename)
41
 
        return bzrlib.bundle.read_bundle.BundleReader(f)
 
41
        return read_bundle1(f)
42
42
    except (errors.TransportError, errors.PathError), e:
43
43
        raise errors.NotABundle(str(e))
44
44