summaryrefslogtreecommitdiff
path: root/python3/pyinotify.py
diff options
context:
space:
mode:
Diffstat (limited to 'python3/pyinotify.py')
-rwxr-xr-xpython3/pyinotify.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/python3/pyinotify.py b/python3/pyinotify.py
index 4f039f5..f4e76e5 100755
--- a/python3/pyinotify.py
+++ b/python3/pyinotify.py
@@ -1371,7 +1371,6 @@ class Notifier:
# Register unlink function
atexit.register(lambda : os.unlink(pid_file))
-
def _sleep(self, ref_time):
# Only consider sleeping if read_freq is > 0
if self._read_freq > 0:
@@ -1381,7 +1380,6 @@ class Notifier:
log.debug('Now sleeping %d seconds', sleep_amount)
time.sleep(sleep_amount)
-
def loop(self, callback=None, daemonize=False, **args):
"""
Events are read only one time every min(read_freq, timeout)
@@ -1428,7 +1426,6 @@ class Notifier:
# Close internals
self.stop()
-
def stop(self):
"""
Close inotify's instance (close its file descriptor).
@@ -1585,8 +1582,8 @@ class TornadoAsyncNotifier(Notifier):
ioloop.add_handler(self._fd, self.handle_read, ioloop.READ)
def stop(self):
- self.io_loop.remove_handler(self._fd)
- Notifier.stop(self)
+ self.io_loop.remove_handler(self._fd)
+ Notifier.stop(self)
def handle_read(self, *args, **kwargs):
"""
@@ -1614,7 +1611,7 @@ class AsyncioNotifier(Notifier):
@param loop: asyncio or trollius event loop instance.
@type loop: asyncio.BaseEventLoop or trollius.BaseEventLoop instance.
@param callback: Functor called at the end of each call to handle_read.
- Expects to receive the notifier object (self) as
+ Expects to receive the notifier object (self) as
single parameter.
@type callback: callable object or function