#NEWLINE# def find_template_loader( self , loader ) : #NEWLINE# #INDENT# if isinstance ( loader , ( tuple , list ) ) : #NEWLINE# #INDENT# args = list ( loader [ 1 : ] ) #NEWLINE# loader = loader [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# args = [ ] #NEWLINE# #UNINDENT# if isinstance ( loader , six . string_types ) : #NEWLINE# #INDENT# loader_class = import_string ( loader ) #NEWLINE# return loader_class ( self , * args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ImproperlyConfigured ( ( 'Invalid value in template loaders configuration: %r' % loader ) )