JanKanis  committed 0adbdf0

API CHANGE! don't let Watcher /be/ in iterable, but return an interable

  • Participants
  • Parent commits a4b2b4c

Comments (0)

Files changed (1)

File inotify/

         self._paths = None
         self._wds = None
-    def __len__(self):
+    def num_watches(self):
         '''Return the number of active watches.'''
         return len(self._paths)
-    def __iter__(self):
+    def watches(self):
         '''Yield a (path, watch descriptor, event mask) tuple for each
         entry being watched.'''