'Remove the watch for path. Raises an OSError if removing the watch
fails for some reason.'

def unwatch(self, path):

    path = realpath(path)
    with self.lock:
        self.modified.pop(path, None)
        self.last_query.pop(path, None)
        wd = self.watches.pop(path, None)
        if (wd is not None):
            if (self._rm_watch(self._inotify_fd, wd) != 0):
                self.handle_error()
