mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Closes #16135: Removal of OS/2 support (distutils)
This commit is contained in:
parent
9407d50208
commit
d17833d360
12 changed files with 7 additions and 425 deletions
|
@ -154,12 +154,6 @@ def change_root (new_root, pathname):
|
|||
path = path[1:]
|
||||
return os.path.join(new_root, path)
|
||||
|
||||
elif os.name == 'os2':
|
||||
(drive, path) = os.path.splitdrive(pathname)
|
||||
if path[0] == os.sep:
|
||||
path = path[1:]
|
||||
return os.path.join(new_root, path)
|
||||
|
||||
else:
|
||||
raise DistutilsPlatformError("nothing known about platform '%s'" % os.name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue