]> granicus.if.org Git - python/commit
Fix #11491. When dbm.open was called with a file which already exists and
authorbriancurtin <brian.curtin@gmail.com>
Mon, 14 Mar 2011 20:03:54 +0000 (16:03 -0400)
committerbriancurtin <brian.curtin@gmail.com>
Mon, 14 Mar 2011 20:03:54 +0000 (16:03 -0400)
commit525c25d42f8740111d14b9f8ca56cc2762175eaf
treec5ba27fca894c9a4fb455c0ada32eb1d004cc950
parentd9a7c4b8e56ddf8be878de284b8a29d4346ec0f8
Fix #11491. When dbm.open was called with a file which already exists and
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
Lib/dbm/__init__.py
Lib/test/test_dbm.py
Misc/ACKS
Misc/NEWS