[Python-3000-checkins] r57358 - python/branches/py3k/Lib/dumbdbm.py
neal.norwitz
python-3000-checkins at python.org
Fri Aug 24 00:06:07 CEST 2007
Author: neal.norwitz
Date: Fri Aug 24 00:06:07 2007
New Revision: 57358
Modified:
python/branches/py3k/Lib/dumbdbm.py
Log:
Fix test_shelve when it uses dumbdbm. Found and fixed by Larry Hastings.
Modified: python/branches/py3k/Lib/dumbdbm.py
==============================================================================
--- python/branches/py3k/Lib/dumbdbm.py (original)
+++ python/branches/py3k/Lib/dumbdbm.py Fri Aug 24 00:06:07 2007
@@ -203,6 +203,7 @@
return self._index.keys()
def __contains__(self, key):
+ key = key.decode("latin-1")
return key in self._index
def iterkeys(self):
More information about the Python-3000-checkins
mailing list