diff options
author | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2014-02-26 18:35:13 +0000 |
---|---|---|
committer | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2014-02-26 18:35:13 +0000 |
commit | 77862458c0d287df29d03e5eacdc0a323b68afe1 (patch) | |
tree | 9a16cc2b65f166d3222233c7eccdf02f3ad347dd /fs/watch.py | |
parent | 2a4d1fd5225e2c7488025743ba695778eb32c94f (diff) | |
download | pyfilesystem-77862458c0d287df29d03e5eacdc0a323b68afe1.tar.gz |
Test fixes
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@884 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/watch.py')
-rw-r--r-- | fs/watch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/watch.py b/fs/watch.py index 55e7462..f9e581a 100644 --- a/fs/watch.py +++ b/fs/watch.py @@ -315,7 +315,7 @@ class WatchableFS(WatchableFSMixin,WrapFS): def setcontents(self, path, data=b'', encoding=None, errors=None, chunk_size=64*1024): existed = self.wrapped_fs.isfile(path) - ret = super(WatchableFS, self).setcontents(path, data, chunk_size=chunk_size) + ret = super(WatchableFS, self).setcontents(path, data=data, encoding=encoding, errors=errors, chunk_size=chunk_size) if not existed: self.notify_watchers(CREATED, path) self.notify_watchers(ACCESSED, path) @@ -325,7 +325,7 @@ class WatchableFS(WatchableFSMixin,WrapFS): def createfile(self, path, wipe=False): existed = self.wrapped_fs.isfile(path) - ret = super(WatchableFS, self).createfile(path, wipe=False) + ret = super(WatchableFS, self).createfile(path, wipe=wipe) if not existed: self.notify_watchers(CREATED,path) self.notify_watchers(ACCESSED,path) |