#NEWLINE# def loop( self , sleep_time = 1 , callback = None ) : #NEWLINE# #INDENT# '\n        Goes into a blocking IO loop. If polling is used, the sleep_time is\n        the interval, in seconds, between polls.\n        ' #NEWLINE# self . log ( 'No supported libraries found: using polling-method.' ) #NEWLINE# self . _running = True #NEWLINE# self . trigger_init ( ) #NEWLINE# self . _scan ( trigger = False ) #NEWLINE# if self . _warn : #NEWLINE# #INDENT# print ( "\nYou should install a third-party library so I don't eat CPU.\nSupported libraries are:\n  - pyinotify (Linux)\n  - pywin32 (Windows)\n  - MacFSEvents (OSX)\n\nUse pip or easy_install and install one of those libraries above.\n" ) #NEWLINE# #UNINDENT# while self . _running : #NEWLINE# #INDENT# self . _scan ( ) #NEWLINE# if isinstance ( sleep_time , collections . Callable ) : #NEWLINE# #INDENT# callback ( ) #NEWLINE# #UNINDENT# time . sleep ( sleep_time )