/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: Robey Pointer
  • Date: 2006-07-01 19:03:33 UTC
  • mfrom: (1829 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1830.
  • Revision ID: robey@lag.net-20060701190333-f58465aec4bd3412
merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
from bzrlib.bundle.serializer import read_bundle
17
18
import bzrlib.errors as errors
18
19
import bzrlib.urlutils
19
20
import bzrlib.transport
20
 
import bzrlib.bundle.read_bundle
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_bundle(f)
42
42
    except (errors.TransportError, errors.PathError), e:
43
43
        raise errors.NotABundle(str(e))
44
44