~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-03-12 07:38:10 UTC
  • mfrom: (3234.2.9 bug.139318)
  • Revision ID: pqm@pqm.ubuntu.com-20080312073810-r3a7ot93mw7hmk1m
(bialix) bzr send: ensure that command line to invoking mail client
 is 8-bit string, not unicode (#139318)

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