]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport Martin's checkin 1.6:
authorThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 13:45:01 +0000 (13:45 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 13:45:01 +0000 (13:45 +0000)
Fix bug #422702: Make flag argument to open optional, and document it that way.

Lib/dbhash.py

index ad94ed8efa1db35bb3b5bbd67449878d22f1c016..7aec772c879fa8e5d9d7783a0c65b0678cd3b660 100644 (file)
@@ -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)