mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
#16135: Removal of OS/2 support (Python code partial cleanup)
This commit is contained in:
parent
f1af705720
commit
4791a24268
11 changed files with 20 additions and 89 deletions
|
@ -122,7 +122,7 @@ try:
|
|||
except AttributeError:
|
||||
# os.devnull was added in Python 2.4, so emulate it for earlier
|
||||
# Python versions
|
||||
if sys.platform in ('dos','win32','win16','os2'):
|
||||
if sys.platform in ('dos','win32','win16'):
|
||||
# Use the old CP/M NUL as device name
|
||||
DEV_NULL = 'NUL'
|
||||
else:
|
||||
|
@ -896,7 +896,7 @@ def _syscmd_uname(option,default=''):
|
|||
|
||||
""" Interface to the system's uname command.
|
||||
"""
|
||||
if sys.platform in ('dos','win32','win16','os2'):
|
||||
if sys.platform in ('dos','win32','win16'):
|
||||
# XXX Others too ?
|
||||
return default
|
||||
try:
|
||||
|
@ -919,7 +919,7 @@ def _syscmd_file(target,default=''):
|
|||
default in case the command should fail.
|
||||
|
||||
"""
|
||||
if sys.platform in ('dos','win32','win16','os2'):
|
||||
if sys.platform in ('dos','win32','win16'):
|
||||
# XXX Others too ?
|
||||
return default
|
||||
target = _follow_symlinks(target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue