~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: Alexander Belchenko
  • Date: 2008-02-27 18:24:39 UTC
  • mto: (3234.2.2 bug.139318)
  • mto: This revision was merged to the branch mainline in revision 3267.
  • Revision ID: bialix@ukr.net-20080227182439-qltsi1rc2amf5kjr
ensure that local_path_to_url() always returns plain string, not unicode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
274
274
    # check for UNC path \\HOST\path
275
275
    if win32_path.startswith('//'):
276
276
        return 'file:' + escape(win32_path)
277
 
    return 'file:///' + win32_path[0].upper() + ':' + escape(win32_path[2:])
 
277
    return ('file:///' + str(win32_path[0].upper()) + ':' +
 
278
        escape(win32_path[2:]))
278
279
 
279
280
 
280
281
local_path_to_url = _posix_local_path_to_url