#NEWLINE# def __init__( self , opts , functions , returners = None , intervals = None ) : #NEWLINE# #INDENT# self . opts = opts #NEWLINE# self . functions = functions #NEWLINE# if isinstance ( intervals , dict ) : #NEWLINE# #INDENT# self . intervals = opts #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . intervals = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if hasattr ( returners , '__getitem__' ) : #NEWLINE# #INDENT# self . returners = returners #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . returners = returners . loader . gen_functions ( ) #NEWLINE# #UNINDENT# self . time_offset = self . functions . get ( 'timezone.get_offset' , ( lambda : '0000' ) ) ( ) #NEWLINE# self . schedule_returner = self . option ( 'schedule_returner' ) #NEWLINE# self . loop_interval = six . MAXSIZE #NEWLINE# clean_proc_dir ( opts )