diff options
-rw-r--r-- | Lib/dumbdbm.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index 7b4ddb0..b85844d 100644 --- a/Lib/dumbdbm.py +++ b/Lib/dumbdbm.py @@ -110,6 +110,8 @@ class _Database(UserDict.DictMixin): f.write("%r, %r\n" % (key, pos_and_siz_pair)) f.close() + sync = _commit + def __getitem__(self, key): pos, siz = self._index[key] # may raise KeyError f = _open(self._datfile, 'rb') |