~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-16 05:13:21 UTC
  • mto: (1185.50.19 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051216051321-0a46118f3dd3ccc7
get_transport() now forces unicode paths, which helps get proper filenames.

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
    global _protocol_handlers
378
378
    if base is None:
379
379
        base = u'.'
 
380
    else:
 
381
        base = unicode(base)
380
382
    for proto, klass in _protocol_handlers.iteritems():
381
383
        if proto is not None and base.startswith(proto):
382
384
            return klass(base)