projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53cbdaa
)
Fix test_shelve when it uses dumbdbm. Found and fixed by Larry Hastings.
author
Neal Norwitz
<nnorwitz@gmail.com>
Thu, 23 Aug 2007 22:06:07 +0000
(22:06 +0000)
committer
Neal Norwitz
<nnorwitz@gmail.com>
Thu, 23 Aug 2007 22:06:07 +0000
(22:06 +0000)
Lib/dumbdbm.py
patch
|
blob
|
history
diff --git
a/Lib/dumbdbm.py
b/Lib/dumbdbm.py
index 07fd1b33401aada0c785d38a95b97f0745b1d63d..ad3ebcbcb9b131e8817052f34b0b314f747caffc 100644
(file)
--- 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):