mirror of
https://github.com/python/cpython.git
synced 2025-09-06 00:41:39 +00:00
add nturl2path
This commit is contained in:
parent
2d38f9146b
commit
2281d35578
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ __version__ = '1.3'
|
||||||
# Helper for non-unix systems
|
# Helper for non-unix systems
|
||||||
if os.name == 'mac':
|
if os.name == 'mac':
|
||||||
from macurl2path import url2pathname, pathname2url
|
from macurl2path import url2pathname, pathname2url
|
||||||
|
elif os.name == 'nt':
|
||||||
|
from nturl2path import url2pathname, pathname2url
|
||||||
else:
|
else:
|
||||||
def url2pathname(pathname):
|
def url2pathname(pathname):
|
||||||
return pathname
|
return pathname
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue