summaryrefslogtreecommitdiffstats
path: root/Lib/dbm/__init__.py
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-10-05 00:48:46 (GMT)
committerJesus Cea <jcea@jcea.es>2012-10-05 00:48:46 (GMT)
commitf1af7057208da7b3d15703645688fea971a4fb5e (patch)
tree39acd4dbcf0f5d9005521d814952164819d7885d /Lib/dbm/__init__.py
parent080a2c087e5fa08c44ff121d74ea8ad9d4413c58 (diff)
downloadcpython-f1af7057208da7b3d15703645688fea971a4fb5e.zip
cpython-f1af7057208da7b3d15703645688fea971a4fb5e.tar.gz
cpython-f1af7057208da7b3d15703645688fea971a4fb5e.tar.bz2
#16135: Removal of OS/2 support (Remove OS2 and OS/2 references)
Diffstat (limited to 'Lib/dbm/__init__.py')
-rw-r--r--Lib/dbm/__init__.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/dbm/__init__.py b/Lib/dbm/__init__.py
index 813a29d..3bff170 100644
--- a/Lib/dbm/__init__.py
+++ b/Lib/dbm/__init__.py
@@ -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