From: Neal Norwitz Date: Thu, 23 Aug 2007 22:06:07 +0000 (+0000) Subject: Fix test_shelve when it uses dumbdbm. Found and fixed by Larry Hastings. X-Git-Tag: v3.0a1~313 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f3cff58b284e0098eab71b80d0001e173e6981a;p=thirdparty%2FPython%2Fcpython.git Fix test_shelve when it uses dumbdbm. Found and fixed by Larry Hastings. --- diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index 07fd1b33401a..ad3ebcbcb9b1 100644 --- a/Lib/dumbdbm.py +++ b/Lib/dumbdbm.py @@ -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):