You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opening a dbm database which doesn't exist without a "c" or "n" flag
results in this exception:
>>> import dbm
>>> dbm.open("abc")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/MP.shadow/hagenf/local/src/py3k/Lib/dbm/__init__.py", line
79, in open
raise error("need 'c' or 'n' flag to open new db")
TypeError: 'tuple' object is not callable
"error" is a tuple of dbm's own exception class and IOError, but this
doesn't seem to make sense in the present code and Python 3.0. The
attached patch fixes the problem and adds a test for the correct
exception being raised.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: