#NEWLINE# def load_template( self , template_name , template_dirs = None ) : #NEWLINE# #INDENT# warnings . warn ( 'The load_template() method is deprecated. Use get_template() instead.' , RemovedInDjango20Warning ) #NEWLINE# key = self . cache_key ( template_name , template_dirs ) #NEWLINE# template_tuple = self . template_cache . get ( key ) #NEWLINE# if ( template_tuple is TemplateDoesNotExist ) : #NEWLINE# #INDENT# raise TemplateDoesNotExist ( template_name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( template_tuple is None ) : #NEWLINE# #INDENT# ( template , origin ) = self . find_template ( template_name , template_dirs ) #NEWLINE# if ( not hasattr ( template , 'render' ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# template = Template ( template , origin , template_name , self . engine ) #NEWLINE# #UNINDENT# except TemplateDoesNotExist : #NEWLINE# #INDENT# self . template_cache [ key ] = ( template , origin ) #NEWLINE# #UNINDENT# #UNINDENT# self . template_cache [ key ] = ( template , None ) #NEWLINE# #UNINDENT# #UNINDENT# return self . template_cache [ key ]