summaryrefslogtreecommitdiff
path: root/fs/osfs
diff options
context:
space:
mode:
authorwillmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f>2014-05-24 23:00:07 +0000
committerwillmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f>2014-05-24 23:00:07 +0000
commit4174a9e79d56d66e0b90411f5589537a452f51f7 (patch)
treebbe991aa995ce22319abe49f05e8a72b23eae258 /fs/osfs
parent8c7fd396b09377613246c994b6f7078bb9ed55bc (diff)
downloadpyfilesystem-4174a9e79d56d66e0b90411f5589537a452f51f7.tar.gz
fix for watch
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@898 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/osfs')
-rw-r--r--fs/osfs/watch_inotify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/osfs/watch_inotify.py b/fs/osfs/watch_inotify.py
index d0bc6f9..e33f3c7 100644
--- a/fs/osfs/watch_inotify.py
+++ b/fs/osfs/watch_inotify.py
@@ -184,7 +184,7 @@ class OSFSWatchMixin(WatchableFSMixin):
watcher.handle_event(OVERFLOW(self))
if inevt.mask & pyinotify.IN_UNMOUNT:
watcher.handle_event(CLOSE(self))
-
+
def __get_watch_thread(self):
"""Get the shared watch thread, initializing if necessary.
@@ -219,7 +219,7 @@ class SharedThreadedNotifier(threading.Thread):
self.watchers[fd] = watcher
self._poller.register(fd,select.POLLIN)
# Bump the poll object so it recognises the new fd.
- os.write(self._pipe_w,"H")
+ os.write(self._pipe_w,b"H")
def del_watcher(self,watcher):
fd = watcher._pyinotify_WatchManager.get_fd()