mirror of
https://github.com/python/cpython.git
synced 2024-11-26 19:34:19 +08: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
@ -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…
Reference in New Issue
Block a user