From: Thomas Wouters Date: Wed, 27 Jun 2001 13:45:01 +0000 (+0000) Subject: Backport Martin's checkin 1.6: X-Git-Tag: v2.1.1c1~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=588efca0769860eb8368a16f743d774962d16ff8;p=thirdparty%2FPython%2Fcpython.git Backport Martin's checkin 1.6: Fix bug #422702: Make flag argument to open optional, and document it that way. --- diff --git a/Lib/dbhash.py b/Lib/dbhash.py index ad94ed8efa1d..7aec772c879f 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)