summaryrefslogtreecommitdiff
path: root/examples/chain.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chain.py')
-rw-r--r--examples/chain.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/chain.py b/examples/chain.py
index 139eb64..9760414 100644
--- a/examples/chain.py
+++ b/examples/chain.py
@@ -1,14 +1,13 @@
-# Example
+# Example: monitors events and logs them into a log file.
#
-# This example logs the observed events into a log file.
from pyinotify import *
class Log(ProcessEvent):
def my_init(self, fileobj):
"""
- Template method automatically called from ProcessEvent.__init__().
- And keyworded arguments passed to ProcessEvent.__init__() are delegated
- to my_init().
+ Method automatically called from ProcessEvent.__init__(). Additional
+ keyworded arguments passed to ProcessEvent.__init__() are then
+ delegated to my_init(). This is the case for fileobj.
"""
self._fileobj = fileobj