Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
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
CPython versions tested on:
3.13
Operating systems tested on:
Windows