X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/ac96953da33049f4d8017a0cce6475e93b3ec037..4a78c361a6de3bcbf98f02abfe41ae3b11de2b00:/lib/asyncnotifier.py?ds=sidebyside diff --git a/lib/asyncnotifier.py b/lib/asyncnotifier.py index 9d5610e..37a2fcb 100644 --- a/lib/asyncnotifier.py +++ b/lib/asyncnotifier.py @@ -26,7 +26,7 @@ import asyncore import logging try: - # pylint: disable-msg=E0611 + # pylint: disable=E0611 from pyinotify import pyinotify except ImportError: import pyinotify @@ -34,6 +34,7 @@ except ImportError: from ganeti import daemon from ganeti import errors + # We contributed the AsyncNotifier class back to python-pyinotify, and it's # part of their codebase since version 0.8.7. This code can be removed once # we'll be ready to depend on python-pyinotify >= 0.8.7 @@ -41,7 +42,7 @@ class AsyncNotifier(asyncore.file_dispatcher): """An asyncore dispatcher for inotify events. """ - # pylint: disable-msg=W0622,W0212 + # pylint: disable=W0622,W0212 def __init__(self, watch_manager, default_proc_fun=None, map=None): """Initializes this class. @@ -89,7 +90,7 @@ class FileEventHandlerBase(pyinotify.ProcessEvent): @param watch_manager: inotify watch manager """ - # pylint: disable-msg=W0231 + # pylint: disable=W0231 # no need to call the parent's constructor self.watch_manager = watch_manager @@ -167,7 +168,7 @@ class SingleFileEventHandler(FileEventHandlerBase): if self._watch_handle is not None and self.RemoveWatch(self._watch_handle): self._watch_handle = None - # pylint: disable-msg=C0103 + # pylint: disable=C0103 # this overrides a method in pyinotify.ProcessEvent def process_IN_IGNORED(self, event): # Since we monitor a single file rather than the directory it resides in, @@ -181,7 +182,7 @@ class SingleFileEventHandler(FileEventHandlerBase): self._watch_handle = None self._callback(False) - # pylint: disable-msg=C0103 + # pylint: disable=C0103 # this overrides a method in pyinotify.ProcessEvent def process_IN_MODIFY(self, event): # This gets called when the monitored file is modified. Note that this