mirror of
https://github.com/python/cpython
synced 2024-09-16 01:45:23 +00:00
add nturl2path
This commit is contained in:
parent
2d38f9146b
commit
2281d35578
|
@ -25,6 +25,8 @@
|
|||
# Helper for non-unix systems
|
||||
if os.name == 'mac':
|
||||
from macurl2path import url2pathname, pathname2url
|
||||
elif os.name == 'nt':
|
||||
from nturl2path import url2pathname, pathname2url
|
||||
else:
|
||||
def url2pathname(pathname):
|
||||
return pathname
|
||||
|
|
Loading…
Reference in a new issue