Commits

Nikolaj Sjujskij committed be4697b

inotify_watcher: simplify action-wrapping lambda

Comments (0)

Files changed (1)

inotify_watcher.py

     # because editors like vim do save&rename instead of simple modification
     inotifyx.add_watch(watcher, dirname, inotifyx.IN_CLOSE_WRITE)
     # wrap action to avoid code duplication
-    action_lambda = lambda dummy=None: action(file_to_watch, *action_args,
-                                                             **action_kwargs)
+    action_lambda = lambda: action(file_to_watch, *action_args, **action_kwargs)
     # run the first time
     action_lambda()
     while True: