Get rid of dict.has_key(). Boy this has a lot of repercussions!
Not all code has been fixed yet; this is just a checkpoint...
The C API still has PyDict_HasKey() and _HasKeyString(); not sure
if I want to change those just yet.
diff --git a/Lib/bsddb/dbshelve.py b/Lib/bsddb/dbshelve.py
index 5cd4a53..afc1a1a 100644
--- a/Lib/bsddb/dbshelve.py
+++ b/Lib/bsddb/dbshelve.py
@@ -35,7 +35,7 @@
except ImportError:
# DictMixin is new in Python 2.3
class DictMixin: pass
-import db
+from . import db
#------------------------------------------------------------------------
@@ -197,6 +197,10 @@
raise NotImplementedError
+ def __contains__(self, key):
+ return self.has_key(key)
+
+
#----------------------------------------------
# Methods allowed to pass-through to self.db
#