238
238
def _win32_local_path_from_url(url):
239
239
"""Convert a url like file:///C:/path/to/foo into C:/path/to/foo"""
243
240
if not url.startswith('file://'):
244
241
raise errors.InvalidURL(url, 'local urls must start with file:///, '
245
242
'UNC path urls must start with file://')