summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-23 22:06:07 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-23 22:06:07 (GMT)
commit0f3cff58b284e0098eab71b80d0001e173e6981a (patch)
treeb3cf04c3512d801fca2f14b6f9043458ef5b2e42
parent53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219 (diff)
downloadcpython-0f3cff58b284e0098eab71b80d0001e173e6981a.zip
cpython-0f3cff58b284e0098eab71b80d0001e173e6981a.tar.gz
cpython-0f3cff58b284e0098eab71b80d0001e173e6981a.tar.bz2
Fix test_shelve when it uses dumbdbm. Found and fixed by Larry Hastings.
-rw-r--r--Lib/dumbdbm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index 07fd1b3..ad3ebcb 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):