We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b78409 commit 47a8f23Copy full SHA for 47a8f23
Lib/nturl2path.py
@@ -46,6 +46,8 @@ def pathname2url(p):
46
# C:\foo\bar\spam.foo
47
# becomes
48
# ///C:/foo/bar/spam.foo
49
+ # Normalize path separators to backslashes first
50
+ p = p.replace('/', '\\')
51
import ntpath
52
import urllib.parse
53
# First, clean up some special forms. We are going to sacrifice
0 commit comments