From c1b22a07c32481855af661f4d6888c9e361e9200 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 22 Feb 2007 05:04:32 +0000 Subject: Fix dumbdbm and test_dumbdbm to work with dict views. Bug in dumbdbm was from dict views not being iterators but just iterables. --- Lib/dumbdbm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/dumbdbm.py') diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index 1c9b57219a..7724ac6693 100644 --- a/Lib/dumbdbm.py +++ b/Lib/dumbdbm.py @@ -202,7 +202,7 @@ class _Database(UserDict.DictMixin): return key in self._index def iterkeys(self): - return self._index.keys() + return iter(self._index.keys()) __iter__ = iterkeys def __len__(self): -- cgit v1.2.1