Skip to content

Commit

Permalink
Fix bug #422702: Make flag argument to open optional, and document it…
Browse files Browse the repository at this point in the history
… that way.
  • Loading branch information
loewis committed Jun 5, 2001
1 parent 2750bcc commit e24fef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/lib/libdbhash.tex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ \section{\module{dbhash} ---
\exception{KeyError}. It is a synonym for \exception{bsddb.error}.
\end{excdesc}

\begin{funcdesc}{open}{path, flag\optional{, mode}}
\begin{funcdesc}{open}{path, \optional{, flag\optional{, mode}}}
Open a \code{db} database and return the database object. The
\var{path} argument is the name of the database file.

Expand Down
2 changes: 1 addition & 1 deletion Lib/dbhash.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

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)

0 comments on commit e24fef0

Please sign in to comment.