209
210
if not url.startswith('file://'):
210
211
raise errors.InvalidURL(url, 'local urls must start with file:///, '
211
212
'UNC path urls must start with file://')
212
214
# We strip off all 3 slashes
213
215
win32_url = url[len('file:'):]
214
216
# check for UNC path: //HOST/path