#NEWLINE# def initTask( self ) : #NEWLINE# #INDENT# super ( TwistedReactorTask , self ) . initTask ( ) #NEWLINE# needed = getattr ( self . service , 'REQUIRE_TWISTED' , False ) #NEWLINE# for t in self . service . tasks : #NEWLINE# #INDENT# if isinstance ( t , TwistedTask ) : #NEWLINE# #INDENT# needed = True #NEWLINE# #UNINDENT# #UNINDENT# if ( not needed ) : #NEWLINE# #INDENT# raise SkipTask ( 'No TwistedTasks found or enabled' ) #NEWLINE# #UNINDENT# self . reactor = twisted . internet . reactor