Fixes for Lint-Issues

This commit is contained in:
Oliver Freund 2022-11-05 15:12:30 -06:00
parent 5b0b9b063c
commit 49568ab2d5
1 changed files with 3 additions and 2 deletions

View File

@ -1,9 +1,9 @@
import os
import re
import string
import sys
import urllib.parse
import urllib.request
import re
from typing import Optional
from .compat import WINDOWS
@ -45,7 +45,8 @@ def url_to_path(url: str) -> str:
# do not include traceback as the error message should be self-explaining
sys.tracebacklimit = 0
raise ValueError(
f"{url!r} points to the domain '{netloc}'. Non-local file URIs are not supported on this platform. "
f"{url!r} points to the domain '{netloc}'. "
f"Non-local file URIs are not supported on this platform. "
f"Did you mean to use {re.sub('(^file:)(/)+','file:/',url)}?"
)