summaryrefslogtreecommitdiffstats
path: root/Lib/dbm
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-04 09:14:36 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-04 09:14:36 (GMT)
commitd9e833c70a22558236fc863250870837d4ad8b16 (patch)
treeb9bb6ff8d06dcb05975f5281d48a55babbb8582a /Lib/dbm
parentda72231c9feeef6983f05dc963a69cf6f1c8de29 (diff)
downloadcpython-d9e833c70a22558236fc863250870837d4ad8b16.zip
cpython-d9e833c70a22558236fc863250870837d4ad8b16.tar.gz
cpython-d9e833c70a22558236fc863250870837d4ad8b16.tar.bz2
#6045: provide at least get() and setdefault() for all dbm modules.
Diffstat (limited to 'Lib/dbm')
-rw-r--r--Lib/dbm/dumb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dbm/dumb.py b/Lib/dbm/dumb.py
index 4d804da..cfb9123 100644
--- a/Lib/dbm/dumb.py
+++ b/Lib/dbm/dumb.py
@@ -203,7 +203,7 @@ class _Database(collections.MutableMapping):
# The blocks used by the associated value are lost.
del self._index[key]
# XXX It's unclear why we do a _commit() here (the code always
- # XXX has, so I'm not changing it). _setitem__ doesn't try to
+ # XXX has, so I'm not changing it). __setitem__ doesn't try to
# XXX keep the directory file in synch. Why should we? Or
# XXX why shouldn't __setitem__?
self._commit()
@@ -232,7 +232,7 @@ class _Database(collections.MutableMapping):
__del__ = close
- def _chmod (self, file):
+ def _chmod(self, file):
if hasattr(self._os, 'chmod'):
self._os.chmod(file, self._mode)