mirror of
https://github.com/python/cpython.git
synced 2025-09-20 15:40:32 +00:00
In a number of places code still revers
to "sys.platform == 'mac'" and that is dead code because it refers to a platform that is no longer supported (and hasn't been supported for several releases). Fixes issue #7908 for the trunk.
This commit is contained in:
parent
a8157183b8
commit
9545a23c7f
30 changed files with 70 additions and 267 deletions
|
@ -42,9 +42,7 @@ __version__ = '1.17' # XXX This version is not always updated :-(
|
|||
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
|
||||
elif os.name == 'riscos':
|
||||
from rourl2path import url2pathname, pathname2url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue