You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paths with forward slashes aren't handled the same as paths with backslashes:
>>>fromnturl2pathimportpathname2url>>>pathname2url('//?/unc/server/share/dir')
'//%3F/unc/server/share/dir'# NOK>>>pathname2url(r'\\?\unc\server\share\dir')
'//server/share/dir'# OK
Bug report
Bug description:
Paths with forward slashes aren't handled the same as paths with backslashes:
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
pathname2url(): handle forward slashes in Windows paths #126593pathname2url(): handle forward slashes in Windows paths (GH-126593) #126763pathname2url(): handle forward slashes in Windows paths (GH-126593) #126764