summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-10-05 01:15:39 (GMT)
committerJesus Cea <jcea@jcea.es>2012-10-05 01:15:39 (GMT)
commit4791a242688167ffc4abb3b9f42d6cd9e877652e (patch)
tree62a566c811ae808f9dd7a7aa10e655d4d3aad56b /Lib/platform.py
parentf1af7057208da7b3d15703645688fea971a4fb5e (diff)
downloadcpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.zip
cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.tar.gz
cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.tar.bz2
#16135: Removal of OS/2 support (Python code partial cleanup)
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index d7c508f..baead5c 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -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)