def ignore(self, path):
        """
        Remove the watch point monitoring the given path

        @param path: The path that should be ignored
        @type path: L{FilePath}
        """
        path = path.asBytesMode()
        wd = self._isWatched(path)
        if wd is None:
            raise KeyError("%r is not watched" % (path,))
        else:
            self._rmWatch(wd)

        Remove the watch point monitoring the given path

        @param path: The path that should be ignored
        @type path: L{FilePath}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/inotify.py