diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2007-08-24 05:32:10 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2007-08-24 05:32:10 (GMT) |
commit | 07aec08a0134318a5ee087e61f5afbb213f77d93 (patch) | |
tree | a38212884336cec47a890ac4ffd4f74689fc9278 /Lib/bsddb | |
parent | fc5fafcf78c87ff80b79a9b89cee7b0e2add6186 (diff) | |
download | cpython-07aec08a0134318a5ee087e61f5afbb213f77d93.zip cpython-07aec08a0134318a5ee087e61f5afbb213f77d93.tar.gz cpython-07aec08a0134318a5ee087e61f5afbb213f77d93.tar.bz2 |
reapply of r57378 to fix bug 1725856
Diffstat (limited to 'Lib/bsddb')
-rw-r--r-- | Lib/bsddb/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py index df50bce..26e41b1 100644 --- a/Lib/bsddb/__init__.py +++ b/Lib/bsddb/__init__.py @@ -266,12 +266,16 @@ class _DBWithCursor(_iter_mixin): def first(self): self._checkOpen() + # fix 1725856: don't needlessly try to restore our cursor position + self.saved_dbc_key = None self._checkCursor() rv = _DeadlockWrap(self.dbc.first) return rv def last(self): self._checkOpen() + # fix 1725856: don't needlessly try to restore our cursor position + self.saved_dbc_key = None self._checkCursor() rv = _DeadlockWrap(self.dbc.last) return rv |