diff options
author | Thomas Wouters <thomas@python.org> | 2001-06-27 13:45:01 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2001-06-27 13:45:01 (GMT) |
commit | 588efca0769860eb8368a16f743d774962d16ff8 (patch) | |
tree | 9209d7eb1d6846ffefa84c0b4a0ecf66f270814d | |
parent | 95043eff3c404a7bd42ff7d4d320203532c542c7 (diff) | |
download | cpython-588efca0769860eb8368a16f743d774962d16ff8.zip cpython-588efca0769860eb8368a16f743d774962d16ff8.tar.gz cpython-588efca0769860eb8368a16f743d774962d16ff8.tar.bz2 |
Backport Martin's checkin 1.6:
Fix bug #422702: Make flag argument to open optional, and document it that way.
-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) |