Skip to content

Commit d622621

Browse files
author
willmcgugan@gmail.com
committed
fix for watch
1 parent 24bae94 commit d622621

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

fs/osfs/watch_inotify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def __route_event(self,watcher,inevt):
184184
watcher.handle_event(OVERFLOW(self))
185185
if inevt.mask & pyinotify.IN_UNMOUNT:
186186
watcher.handle_event(CLOSE(self))
187-
187+
188188
def __get_watch_thread(self):
189189
"""Get the shared watch thread, initializing if necessary.
190190
@@ -219,7 +219,7 @@ def add_watcher(self,watcher):
219219
self.watchers[fd] = watcher
220220
self._poller.register(fd,select.POLLIN)
221221
# Bump the poll object so it recognises the new fd.
222-
os.write(self._pipe_w,"H")
222+
os.write(self._pipe_w,b"H")
223223

224224
def del_watcher(self,watcher):
225225
fd = watcher._pyinotify_WatchManager.get_fd()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import sys
88
PY3 = sys.version_info >= (3,)
99

10-
VERSION = "0.5.0"
10+
VERSION = "0.5.1-dev"
1111

1212
COMMANDS = ['fscat',
1313
'fscp',

0 commit comments

Comments
 (0)