#NEWLINE# def _generate_notifier( self ) : #NEWLINE# #INDENT# handler = EventHandler ( self ) #NEWLINE# notifier = pyinotify . Notifier ( self . _watcher , handler ) #NEWLINE# mask = ( ( ( ( pyinotify . IN_DELETE | pyinotify . IN_CREATE ) | pyinotify . IN_MODIFY ) | pyinotify . IN_MOVED_TO ) | pyinotify . IN_MOVED_TO ) #NEWLINE# for path in self . paths : #NEWLINE# #INDENT# self . _watcher . add_watch ( path , self , rec = True , auto_add = True , exclude_filter = self . is_valid_type ) #NEWLINE# #UNINDENT# return notifier