321
321
if sys.platform == 'win32' and url.startswith('file:///'):
322
322
# Strip off the drive letter
324
325
raise errors.InvalidURL(url,
325
326
'win32 file:/// paths need a drive letter')
329
330
if exclude_trailing_slash and len(path) > 1 and path.endswith('/'):