226
226
# usual local path with drive letter
228
228
or win32_url[3] not in ('abcdefghijklmnopqrstuvwxyz'
229
229
'ABCDEFGHIJKLMNOPQRSTUVWXYZ')
230
230
or win32_url[4] not in '|:'
232
232
raise errors.InvalidURL(url, 'Win32 file urls start with'
233
233
' file:///x:/, where x is a valid drive letter')
234
234
return win32_url[3].upper() + u':' + unescape(win32_url[5:])