diff options
-rw-r--r-- | fs/wrapfs/readonlyfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/wrapfs/readonlyfs.py b/fs/wrapfs/readonlyfs.py index 6959c55..5714745 100644 --- a/fs/wrapfs/readonlyfs.py +++ b/fs/wrapfs/readonlyfs.py @@ -40,7 +40,7 @@ class ReadOnlyFS(WrapFS): def open(self, path, mode='r', **kwargs): """ Only permit read access """ - if 'w' in mode or 'a' in mode: + if 'w' in mode or 'a' in mode or '+' in mode: raise UnsupportedError('write') return super(ReadOnlyFS, self).open(path, mode, **kwargs) |