Revision ac96953d lib/asyncnotifier.py

b/lib/asyncnotifier.py
153 153
    if self._watch_handle is not None:
154 154
      return
155 155

  
156
    # Class '...' has no 'IN_...' member, pylint: disable-msg=E1103
157
    mask = (pyinotify.EventsCodes.IN_MODIFY |
158
            pyinotify.EventsCodes.IN_IGNORED)
156
    # Different Pyinotify versions have the flag constants at different places,
157
    # hence not accessing them directly
158
    mask = (pyinotify.EventsCodes.ALL_FLAGS["IN_MODIFY"] |
159
            pyinotify.EventsCodes.ALL_FLAGS["IN_IGNORED"])
159 160

  
160 161
    self._watch_handle = self.AddWatch(self._filename, mask)
161 162

  

Also available in: Unified diff