diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-02-22 05:04:32 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-02-22 05:04:32 (GMT) |
commit | c1b22a07c32481855af661f4d6888c9e361e9200 (patch) | |
tree | 19e21a52283bcfabc89e6498b567e2d0f542ec09 /Lib/dumbdbm.py | |
parent | f0c82f9842c76a0b1c287c20d9e2061bbc134739 (diff) | |
download | cpython-c1b22a07c32481855af661f4d6888c9e361e9200.zip cpython-c1b22a07c32481855af661f4d6888c9e361e9200.tar.gz cpython-c1b22a07c32481855af661f4d6888c9e361e9200.tar.bz2 |
Fix dumbdbm and test_dumbdbm to work with dict views. Bug in dumbdbm was from
dict views not being iterators but just iterables.
Diffstat (limited to 'Lib/dumbdbm.py')
-rw-r--r-- | Lib/dumbdbm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index 1c9b572..7724ac6 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): |