diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-06-05 05:33:19 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-06-05 05:33:19 (GMT) |
commit | e24fef0dd243fc896bfe1947cd638e225e7361c5 (patch) | |
tree | c9f3b1a49696c1dd5559ce6bac727e4963f8c4d2 /Lib/dbhash.py | |
parent | 2750bcc2d139f95b08693512af4b4ae50c505998 (diff) | |
download | cpython-e24fef0dd243fc896bfe1947cd638e225e7361c5.zip cpython-e24fef0dd243fc896bfe1947cd638e225e7361c5.tar.gz cpython-e24fef0dd243fc896bfe1947cd638e225e7361c5.tar.bz2 |
Fix bug #422702: Make flag argument to open optional, and document it that way.
Diffstat (limited to 'Lib/dbhash.py')
-rw-r--r-- | Lib/dbhash.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dbhash.py b/Lib/dbhash.py index ad94ed8..7aec772 100644 --- a/Lib/dbhash.py +++ b/Lib/dbhash.py @@ -12,5 +12,5 @@ __all__ = ["error","open"] error = bsddb.error # Exported for anydbm -def open(file, flag, mode=0666): +def open(file, flag = 'r', mode=0666): return bsddb.hashopen(file, flag, mode) |