#NEWLINE# def _get_included_directives( self , block ) : #NEWLINE# #INDENT# 'Returns array with the "include" directives expanded out by\n        concatenating the contents of the included file to the block.\n\n        :param list block:\n        :rtype: list\n\n        ' #NEWLINE# result = list ( block ) #NEWLINE# for directive in block : #NEWLINE# #INDENT# if _is_include_directive ( directive ) : #NEWLINE# #INDENT# included_files = glob . glob ( self . abs_path ( directive [ 1 ] ) ) #NEWLINE# for incl in included_files : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# result . extend ( self . parsed [ incl ] ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return result