From 588efca0769860eb8368a16f743d774962d16ff8 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Wed, 27 Jun 2001 13:45:01 +0000 Subject: [PATCH] Backport Martin's checkin 1.6: Fix bug #422702: Make flag argument to open optional, and document it that way. --- Lib/dbhash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3