commit | 2dd1ed69b425d2f2ac8152548c7581aa1f01216d | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Jun 28 07:08:39 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Jun 28 07:08:39 2003 +0000 |
tree | 779cfb41641f5c3e8a4f0b9b7853eb92546f1d25 | |
parent | 3567a876c7c86d443b3da18fb183ed677f260881 [diff] |
SF 662923: iterator for dbm keys When shelve and the bsdbm where expanded to a full mapping interface, this module was missed.
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index d0e1e31..2f6bc51 100644 --- a/Lib/dumbdbm.py +++ b/Lib/dumbdbm.py
@@ -23,6 +23,7 @@ import os as _os import __builtin__ +import UserDict _open = __builtin__.open @@ -30,7 +31,7 @@ error = IOError # For anydbm -class _Database: +class _Database(UserDict.DictMixin): def __init__(self, file, mode): self._mode = mode