~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-29 05:08:20 UTC
  • mto: (1711.4.37 win32-accepted)
  • mto: This revision was merged to the branch mainline in revision 1827.
  • Revision ID: john@arbash-meinel.com-20060629050820-9357c771aed180f9
win32 likes to return lowercase drive letters sometimes, and uppercase at other times. normalize this

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
        or win32_url[2] != '/'):
182
182
        raise errors.InvalidURL(url, 'Win32 file urls start with'
183
183
                ' file:///x:/, where x is a valid drive letter')
184
 
    # Preferentially using .lower() because os.getcwd() returns
185
 
    # paths with lowercase drive letters, and that helps
186
 
    # bzrlib.osutils.relpath() work correctly
187
184
    return win32_url[0].upper() + u':' + unescape(win32_url[2:])
188
185
 
189
186