summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2001-06-27 13:45:01 (GMT)
committerThomas Wouters <thomas@python.org>2001-06-27 13:45:01 (GMT)
commit588efca0769860eb8368a16f743d774962d16ff8 (patch)
tree9209d7eb1d6846ffefa84c0b4a0ecf66f270814d
parent95043eff3c404a7bd42ff7d4d320203532c542c7 (diff)
downloadcpython-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.py2
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)