~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

Merge trunk

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