~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: 2006-06-29 15:20:15 UTC
  • mfrom: (1711.4.34 win32-accepted)
  • Revision ID: pqm@pqm.ubuntu.com-20060629152015-62f5695e00233860
(jam) win32 fixes: #45010, EPIPE, test suite fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
    # Preferentially using .lower() because os.getcwd() returns
185
185
    # paths with lowercase drive letters, and that helps
186
186
    # bzrlib.osutils.relpath() work correctly
187
 
    return win32_url[0].lower() + u':' + unescape(win32_url[2:])
 
187
    return win32_url[0].upper() + u':' + unescape(win32_url[2:])
188
188
 
189
189
 
190
190
def _win32_local_path_to_url(path):
200
200
    #       semantics, since 'nt' is not an available module.
201
201
    win32_path = bzrlib.osutils._nt_normpath(
202
202
        bzrlib.osutils._win32_abspath(path)).replace('\\', '/')
203
 
    return 'file:///' + win32_path[0].lower() + ':' + escape(win32_path[2:])
 
203
    return 'file:///' + win32_path[0].upper() + ':' + escape(win32_path[2:])
204
204
 
205
205
 
206
206
local_path_to_url = _posix_local_path_to_url