Closed
Description
Bug report
Bug description:
Paths with forward slashes aren't handled the same as paths with backslashes:
>>> from nturl2path import pathname2url
>>> 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