Commit 1dc366f1 authored by Guido van Rossum's avatar Guido van Rossum

add (dummy) mode arg to open()

parent edd6376e
...@@ -14,6 +14,9 @@ updates, they can mess up the index) ...@@ -14,6 +14,9 @@ updates, they can mess up the index)
- support efficient access to large databases (currently, the whole 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) is read when the database is opened, and some updates rewrite the whole index)
- support opening for read-only (flag = 'm')
""" """
_os = __import__('os') _os = __import__('os')
...@@ -132,5 +135,6 @@ class _Database: ...@@ -132,5 +135,6 @@ class _Database:
self._index = self._datfile = self._dirfile = self._bakfile = None 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) return _Database(file)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment