Kaydet (Commit) 39df6617 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Revert part of r60927 which made invalid assumptions about the API offered by db modules.

üst 9d63837e
......@@ -95,13 +95,13 @@ class Shelf(UserDict.DictMixin):
return len(self.dict)
def has_key(self, key):
return key in self.dict
return self.dict.has_key(key)
def __contains__(self, key):
return key in self.dict
return self.dict.has_key(key)
def get(self, key, default=None):
if key in self.dict:
if self.dict.has_key(key):
return self[key]
return default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment