mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Bug #1396678: a closed bsddb.DB raises AttributeError on repr().
It now returns "{}". Is that the correct solution?
This commit is contained in:
parent
bb45973455
commit
26caeba35a
1 changed files with 4 additions and 1 deletions
|
|
@ -112,7 +112,10 @@ class _iter_mixin(UserDict.DictMixin):
|
|||
|
||||
def iteritems(self):
|
||||
try:
|
||||
cur = self._make_iter_cursor()
|
||||
try:
|
||||
cur = self._make_iter_cursor()
|
||||
except AttributeError:
|
||||
return
|
||||
|
||||
# FIXME-20031102-greg: race condition. cursor could
|
||||
# be closed by another thread before this call.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue