mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
#16135: Removal of OS/2 support (Remove OS2 and OS/2 references)
This commit is contained in:
parent
080a2c087e
commit
f1af705720
18 changed files with 14 additions and 878 deletions
|
@ -106,10 +106,8 @@ def whichdb(filename):
|
|||
try:
|
||||
f = io.open(filename + ".pag", "rb")
|
||||
f.close()
|
||||
# dbm linked with gdbm on OS/2 doesn't have .dir file
|
||||
if not (ndbm.library == "GNU gdbm" and sys.platform == "os2emx"):
|
||||
f = io.open(filename + ".dir", "rb")
|
||||
f.close()
|
||||
f = io.open(filename + ".dir", "rb")
|
||||
f.close()
|
||||
return "dbm.ndbm"
|
||||
except IOError:
|
||||
# some dbm emulations based on Berkeley DB generate a .db file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue