Commit b20fd149 authored by Neal Norwitz's avatar Neal Norwitz

When the _iter_mixin stopped inheritting from UsserDictMixin, it lost the

__repr__ which caused bsddb.test.test_misc.py to fail in test03_repr_closed_db
Restore the repr so the test passes.  I think this is correct, but it would
be good to have some more review.
parent c9b575f5
......@@ -170,6 +170,9 @@ class _DBWithCursor(_iter_mixin):
def __del__(self):
self.close()
def __repr__(self):
return repr(dict(self.iteritems()))
def _checkCursor(self):
if self.dbc is None:
self.dbc = _DeadlockWrap(self.db.cursor)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment