#NEWLINE# def get_tokens( self ) : #NEWLINE# #INDENT# tokens = self . ldict . get ( 'tokens' , None ) #NEWLINE# if ( not self ) : #NEWLINE# #INDENT# self . log . error ( 'No token list is defined' ) #NEWLINE# self . error = 1 #NEWLINE# return #NEWLINE# #UNINDENT# if ( not isinstance ( tokens , ( list , tuple ) ) ) : #NEWLINE# #INDENT# self . log . error ( 'tokens must be a list or tuple' ) #NEWLINE# self . error = 1 #NEWLINE# return #NEWLINE# #UNINDENT# if ( not tokens ) : #NEWLINE# #INDENT# self . log . error ( 'tokens is empty' ) #NEWLINE# self . error = 1 #NEWLINE# return #NEWLINE# #UNINDENT# self . tokens = tokens