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
1dc366f1
Commit
1dc366f1
authored
Sep 01, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add (dummy) mode arg to open()
parent
edd6376e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Mac/Lib/dbmac.py
Mac/Lib/dbmac.py
+5
-1
No files found.
Mac/Lib/dbmac.py
View file @
1dc366f1
...
...
@@ -14,6 +14,9 @@ updates, they can mess up the index)
- support efficient access to large databases (currently, the whole index
is read when the database is opened, and some updates rewrite the whole index)
- support opening for read-only (flag = 'm')
"""
_os
=
__import__
(
'os'
)
...
...
@@ -132,5 +135,6 @@ class _Database:
self
.
_index
=
self
.
_datfile
=
self
.
_dirfile
=
self
.
_bakfile
=
None
def
open
(
file
,
mode
=
None
):
def
open
(
file
,
flag
=
None
,
mode
=
None
):
# flag, mode arguments are currently ignored
return
_Database
(
file
)
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