Commits

JanKanis committed 07733a8

fix bug: evt should be event

Comments (0)

Files changed (1)

inotify/watcher.py

         for evt in inotify.read(self.fd, bufsize):
             event = Event(evt, None if evt.wd == -1 else self._wds[evt.wd][0])
             events.append(event)
-            if evt.ignored:
-                self._remove(evt.wd)
+            if event.ignored:
+                self._remove(event.wd)
             if not len(self._wds):
                 self.close()
         return events