Message73563
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. |
|
Date |
User |
Action |
Args |
2008-09-22 10:07:59 | hagen | set | recipients:
+ hagen |
2008-09-22 10:07:59 | hagen | set | messageid: <1222078079.42.0.696848044955.issue3929@psf.upfronthosting.co.za> |
2008-09-22 10:07:57 | hagen | link | issue3929 messages |
2008-09-22 10:07:57 | hagen | create | |
|