Skip to content

Commit 97ac45b

Browse files
authored
Remove a workaround for n old pathname2url bug (#142)
1 parent e94e699 commit 97ac45b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

w3lib/url.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@ def path_to_file_uri(path: str) -> str:
338338
http://en.wikipedia.org/wiki/File_URI_scheme
339339
"""
340340
x = pathname2url(os.path.abspath(path))
341-
if os.name == "nt":
342-
x = x.replace("|", ":") # http://bugs.python.org/issue5861
343341
return f"file:///{x.lstrip('/')}"
344342

345343

0 commit comments

Comments
 (0)