diff options
| author | Gregory P. Smith <greg@mad-scientist.com> | 2007-08-24 05:11:38 +0000 |
|---|---|---|
| committer | Gregory P. Smith <greg@mad-scientist.com> | 2007-08-24 05:11:38 +0000 |
| commit | 1042a4d71966b597141537d247e1d1e69e42d906 (patch) | |
| tree | f20ed94fdd365f942c9499e8cb1c4fde30676835 /Lib/bsddb | |
| parent | daa6f254c6cf5acad6fb56bc9f360ec26407b409 (diff) | |
| download | cpython-git-1042a4d71966b597141537d247e1d1e69e42d906.tar.gz | |
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 cf32668862..7eb625cdea 100644 --- a/Lib/bsddb/__init__.py +++ b/Lib/bsddb/__init__.py @@ -274,12 +274,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 |
