Commit 0f3cff58 authored by Neal Norwitz's avatar Neal Norwitz

Fix test_shelve when it uses dumbdbm. Found and fixed by Larry Hastings.

parent 53cbdaa8
......@@ -203,6 +203,7 @@ class _Database(UserDict.DictMixin):
return self._index.keys()
def __contains__(self, key):
key = key.decode("latin-1")
return key in self._index
def iterkeys(self):
......
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