#NEWLINE# def _validate_task( self , task ) : #NEWLINE# #INDENT# if ( not isinstance ( task , Task ) ) : #NEWLINE# #INDENT# raise TaskException ( ( 'Can not schedule non-task %s' % task ) ) #NEWLINE# #UNINDENT# if ( not task . initialized ( ) ) : #NEWLINE# #INDENT# raise TaskException ( ( 'Task of class %s not initialized. Did you override __init__ and forget to call super(...).__init__?' % task . __class__ . __name__ ) )