#NEWLINE# def flatten_list( self , initial_list ) : #NEWLINE# #INDENT# if isinstance ( initial_list , list ) : #NEWLINE# #INDENT# return [ flattened for entry in initial_list for flattened in self . flatten_list ( entry ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return [ initial_list ]