projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb45973
)
Bug #1396678: a closed bsddb.DB raises AttributeError on repr().
author
Georg Brandl
<georg@python.org>
Sun, 19 Feb 2006 00:53:54 +0000
(
00:53
+0000)
committer
Georg Brandl
<georg@python.org>
Sun, 19 Feb 2006 00:53:54 +0000
(
00:53
+0000)
It now returns "{}". Is that the correct solution?
Lib/bsddb/__init__.py
patch
|
blob
|
history
diff --git
a/Lib/bsddb/__init__.py
b/Lib/bsddb/__init__.py
index cfe554b9454821dc814fc853848b836e43ea5435..781a22bb7bb0fe4cf23ac86d9f4925fbe6b47cac 100644
(file)
--- a/
Lib/bsddb/__init__.py
+++ b/
Lib/bsddb/__init__.py
@@
-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.