diff --git a/w3lib/url.py b/w3lib/url.py index 5af1ec74..2464576e 100644 --- a/w3lib/url.py +++ b/w3lib/url.py @@ -338,8 +338,6 @@ def path_to_file_uri(path: str) -> str: http://en.wikipedia.org/wiki/File_URI_scheme """ x = pathname2url(os.path.abspath(path)) - if os.name == "nt": - x = x.replace("|", ":") # http://bugs.python.org/issue5861 return f"file:///{x.lstrip('/')}"