#NEWLINE# def __init__( self , path , recursive = False , event_mask = WATCHDOG_ALL_EVENTS , non_blocking = False ) : #NEWLINE# #INDENT# if non_blocking : #NEWLINE# #INDENT# inotify_fd = inotify_init1 ( InotifyConstants . IN_NONBLOCK ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# inotify_fd = inotify_init ( ) #NEWLINE# #UNINDENT# if ( inotify_fd == ( - 1 ) ) : #NEWLINE# #INDENT# Inotify . _raise_error ( ) #NEWLINE# #UNINDENT# self . _inotify_fd = inotify_fd #NEWLINE# self . _lock = threading . Lock ( ) #NEWLINE# self . _wd_for_path = dict ( ) #NEWLINE# self . _path_for_wd = dict ( ) #NEWLINE# path = absolute_path ( path ) #NEWLINE# self . _path = path #NEWLINE# self . _event_mask = event_mask #NEWLINE# self . _is_recursive = recursive #NEWLINE# self . _is_non_blocking = non_blocking #NEWLINE# self . _add_dir_watch ( path , recursive , event_mask ) #NEWLINE# self . _moved_from_events = dict ( )