'Return True iff there are events waiting to be read. Blocks if timeout is None. Polls if timeout is 0.'

def wait(self, timeout=None):

    return (len((select.select([self._inotify_fd], [], []) if (timeout is None) else select.select([self._inotify_fd], [], [], timeout))[0]) > 0)
