mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Remove traces of Mac OS 9 support, again (#9508).
This was done in r80805 (#7908) and erroneously brought back by the distutils revert. This commit removes more code than the original, which was uncomplete. There is no NEWS entry, like in r80805.
This commit is contained in:
parent
2642ad07ee
commit
45ee43be43
4 changed files with 0 additions and 76 deletions
|
@ -235,15 +235,6 @@ def change_root (new_root, pathname):
|
|||
path = path[1:]
|
||||
return os.path.join(new_root, path)
|
||||
|
||||
elif os.name == 'mac':
|
||||
if not os.path.isabs(pathname):
|
||||
return os.path.join(new_root, pathname)
|
||||
else:
|
||||
# Chop off volume name from start of path
|
||||
elements = pathname.split(":", 1)
|
||||
pathname = ":" + elements[1]
|
||||
return os.path.join(new_root, pathname)
|
||||
|
||||
else:
|
||||
raise DistutilsPlatformError("nothing known about platform '%s'" % os.name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue