summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/dbmac.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-09-01 22:55:11 (GMT)
committerGuido van Rossum <guido@python.org>1995-09-01 22:55:11 (GMT)
commit1dc366f1090a6c546751d1fd4509e3c958e2839b (patch)
tree4fa6547e6294fcf3bb3b9a3544340e88c223609b /Mac/Lib/dbmac.py
parentedd6376e5ef090b8dda162c56a0561474c6b41a8 (diff)
downloadcpython-1dc366f1090a6c546751d1fd4509e3c958e2839b.zip
cpython-1dc366f1090a6c546751d1fd4509e3c958e2839b.tar.gz
cpython-1dc366f1090a6c546751d1fd4509e3c958e2839b.tar.bz2
add (dummy) mode arg to open()
Diffstat (limited to 'Mac/Lib/dbmac.py')
-rw-r--r--Mac/Lib/dbmac.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mac/Lib/dbmac.py b/Mac/Lib/dbmac.py
index 1f15ebe..0588dbd 100644
--- a/Mac/Lib/dbmac.py
+++ b/Mac/Lib/dbmac.py
@@ -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)