mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
parent
a045f191b4
commit
94f25283c9
20 changed files with 52 additions and 196 deletions
|
@ -1338,9 +1338,7 @@ class CacheFTPHandler(FTPHandler):
|
|||
MAXFTPCACHE = 10 # Trim the ftp cache beyond this size
|
||||
|
||||
# Helper for non-unix systems
|
||||
if os.name == 'mac':
|
||||
from macurl2path import url2pathname, pathname2url
|
||||
elif os.name == 'nt':
|
||||
if os.name == 'nt':
|
||||
from nturl2path import url2pathname, pathname2url
|
||||
else:
|
||||
def url2pathname(pathname):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue