#NEWLINE# def run( self ) : #NEWLINE# #INDENT# writeLog ( self , ( 'begin Down: %s' % self . event ) , self . startTime ) #NEWLINE# children = self . tree [ self . event ] #NEWLINE# for child in children : #NEWLINE# #INDENT# writeLog ( self , ( 'add %s as child of %s' % ( child , self . event ) ) , self . startTime ) #NEWLINE# self . addChildTarget ( DownJob ( self . tree , child , self . sleepTime , self . startTime , self . cpu ) ) #NEWLINE# #UNINDENT# if ( len ( children ) == 0 ) : #NEWLINE# #INDENT# self . setFollowOnTarget ( UpJob ( self . tree , children . event , self . sleepTime , self . startTime , self . cpu ) ) #NEWLINE# #UNINDENT# return 0