Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2dd1ed6

Browse files
committed
SF 662923: iterator for dbm keys
When shelve and the bsdbm where expanded to a full mapping interface, this module was missed.
1 parent 3567a87 commit 2dd1ed6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/dumbdbm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@
2323

2424
import os as _os
2525
import __builtin__
26+
import UserDict
2627

2728
_open = __builtin__.open
2829

2930
_BLOCKSIZE = 512
3031

3132
error = IOError # For anydbm
3233

33-
class _Database:
34+
class _Database(UserDict.DictMixin):
3435

3536
def __init__(self, file, mode):
3637
self._mode = mode

0 commit comments

Comments
 (0)