#NEWLINE# def add_task( self , t ) : #NEWLINE# #INDENT# if ( not isinstance ( t , task . Task ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'add_task requires a Task, not %s' % type ( t ) ) ) #NEWLINE# #UNINDENT# name = t . name #NEWLINE# self . task [ t ] = t #NEWLINE# self . items . append ( t ) #NEWLINE# return t