diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-29 13:09:42 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-29 13:09:42 +0300 |
commit | 74523d344a1b9e0196050dad9808b6678fbead8f (patch) | |
tree | 51870a528bc98f0dcf8ae0eb2d2d5a385b94c29c | |
parent | 2de414e87e5636c7e6ab0f9a15441d39028e3f09 (diff) | |
download | obnam-74523d344a1b9e0196050dad9808b6678fbead8f.tar.gz |
Change VFS.open to have optional bufsize argument
-rw-r--r-- | obnamlib/vfs.py | 2 | ||||
-rw-r--r-- | obnamlib/vfs_local.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/vfs.py b/obnamlib/vfs.py index 215ec33f..3f71daac 100644 --- a/obnamlib/vfs.py +++ b/obnamlib/vfs.py @@ -231,7 +231,7 @@ class VirtualFileSystem(object): def symlink(self, source, destination): '''Like os.symlink.''' - def open(self, pathname, mode): + def open(self, pathname, mode, bufsize=None): '''Open a file, like the builtin open() or file() function. The return value is a file object like the ones returned diff --git a/obnamlib/vfs_local.py b/obnamlib/vfs_local.py index f1896aea..6e023b13 100644 --- a/obnamlib/vfs_local.py +++ b/obnamlib/vfs_local.py @@ -328,7 +328,7 @@ class LocalFS(obnamlib.VirtualFileSystem): os.symlink(existing, self.join(new)) self.maybe_crash() - def open(self, pathname, mode): + def open(self, pathname, mode, bufsize=None): tracing.trace('pathname=%s', pathname) tracing.trace('mode=%s', mode) f = LocalFSFile(self.join(pathname), mode) |