U ö üeþã@sØddlZddlZddlZe e¡ZejjZ Gdd„de ƒZ dd„Z dd„Z dd „Ze jZge_ee_e jZejejejge_ee_e jZejejge_ee_ee d dƒdk r´e jZn ee d dƒdk rÌe jZned ƒ‚dS) éNcseZdZ‡fdd„Z‡ZS)Ú InotifyErrorcs6t ¡|_|d|jf7}tt|ƒj|f|ž|ŽdS)Nz ERRNO=(%d))ÚctypesZ get_errnoÚerrnoÚsuperrÚ__init__)ÚselfÚmessageÚargsÚkwargs©Ú __class__©ú;/opt/hc_python/lib/python3.8/site-packages/inotify/calls.pyr s zInotifyError.__init__)Ú__name__Ú __module__Ú __qualname__rÚ __classcell__r r r rr srcCs|dkrtd|fƒ‚|S)Nrz&Call failed (should return zero): (%d)©r©Úresultr r rÚ _check_zeros ÿrcCs|dkrtd|fƒ‚|S)Nrz)Call failed (should return nonzero): (%d)rrr r rÚ_check_nonzeros ÿrcCs|dkrtd|fƒ‚|S)Néÿÿÿÿz$Call failed (should not be -1): (%d)rrr r rÚ_check_nonnegative s ÿrrÚerrz'errno' not found in library)ÚloggingrZinotify.libraryZinotifyÚ getLoggerrZ_LOGGERÚlibraryÚinstanceZ_LIBÚ ExceptionrrrrZ inotify_initZargtypesÚrestypeZinotify_add_watchÚc_intÚc_char_pZc_uint32Zinotify_rm_watchÚgetattrrrÚEnvironmentErrorr r r rÚs2 ý