Skip to content

Commit f1af705

Browse files
committed
python#16135: Removal of OS/2 support (Remove OS2 and OS/2 references)
1 parent 080a2c0 commit f1af705

File tree

18 files changed

+14
-878
lines changed

18 files changed

+14
-878
lines changed

Lib/dbm/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,8 @@ def whichdb(filename):
106106
try:
107107
f = io.open(filename + ".pag", "rb")
108108
f.close()
109-
# dbm linked with gdbm on OS/2 doesn't have .dir file
110-
if not (ndbm.library == "GNU gdbm" and sys.platform == "os2emx"):
111-
f = io.open(filename + ".dir", "rb")
112-
f.close()
109+
f = io.open(filename + ".dir", "rb")
110+
f.close()
113111
return "dbm.ndbm"
114112
except IOError:
115113
# some dbm emulations based on Berkeley DB generate a .db file

Lib/mailbox.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
import io
2323
import contextlib
2424
try:
25-
if sys.platform == 'os2emx':
26-
# OS/2 EMX fcntl() not adequate
27-
raise ImportError
2825
import fcntl
2926
except ImportError:
3027
fcntl = None

Lib/ntpath.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
defpath = '.;C:\\bin'
3131
if 'ce' in sys.builtin_module_names:
3232
defpath = '\\Windows'
33-
elif 'os2' in sys.builtin_module_names:
34-
# OS/2 w/ VACPP
35-
altsep = '/'
3633
devnull = 'nul'
3734

3835
def _get_empty(path):
@@ -320,8 +317,7 @@ def dirname(p):
320317

321318
def islink(path):
322319
"""Test whether a path is a symbolic link.
323-
This will always return false for Windows prior to 6.0
324-
and for OS/2.
320+
This will always return false for Windows prior to 6.0.
325321
"""
326322
try:
327323
st = os.lstat(path)

Lib/os2emxpath.py

Lines changed: 0 additions & 158 deletions
This file was deleted.

Lib/plat-os2emx/IN.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

Lib/plat-os2emx/SOCKET.py

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)