Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e03a86c3
Commit
e03a86c3
authored
Aug 11, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change default flag to match dbm/gdbm
parent
1035a892
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/anydbm.py
Lib/anydbm.py
+3
-3
No files found.
Lib/anydbm.py
View file @
e03a86c3
...
...
@@ -31,8 +31,8 @@ decide which module to use based upon the extension or contents of an
existing database file.
The open function has an optional second argument. This can be set to
'r' to open the database for reading only. The default is '
w', which
differs from the dbm default ('r') for historic reasons
.
'r' to open the database for reading only. The default is '
r', like
the dbm default
.
"""
...
...
@@ -47,5 +47,5 @@ for _name in _names:
break
else
:
raise
ImportError
,
"no dbm clone found; tried %s"
%
_names
def
open
(
file
,
flag
=
'
w
'
,
mode
=
0666
):
def
open
(
file
,
flag
=
'
r
'
,
mode
=
0666
):
return
_mod
.
open
(
file
,
flag
,
mode
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment