~benoit.pierre/bzrtools/shell_improvements

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Benoît Pierre
  • Date: 2009-08-02 12:55:24 UTC
  • mfrom: (682.1.36 bzrtools)
  • Revision ID: benoit.pierre@gmail.com-20090802125524-1p2oot1y2l0y3o9w
Merge with upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
408
408
def open_from_url(location):
409
409
    location = urlutils.normalize_url(location)
410
410
    dirname, basename = urlutils.split(location)
 
411
    if location.endswith('/') and not basename.endswith('/'):
 
412
        basename += '/'
411
413
    return get_transport(dirname).get(basename)
412
414
 
413
415