703
703
raise errors.InvalidURL(base, error_str % m.group('proto'))
704
704
# This doesn't look like a protocol, consider it a local path
705
705
new_base = urlutils.local_path_to_url(base)
709
709
# Catch any URLs which are passing Unicode rather than ASCII