parameters: (env, file, include_paths)
return_statement: return files
docstring: Find include directives in an XML file
docstring_summary: Find include directives in an XML file
docstring_tokens: Find include directives in an XML file
function: def find_includes(env, file, include_paths):
  	""" Find include directives in an XML file """
  	includeExpression = re.compile(r'<include>(\S+)</include>', re.M)
  	files = []
  	for line_number, line in enumerate(open(file).readlines()):
  		match = includeExpression.search(line)
  		if match:
  			files.append(find_include_file(match.group(1).strip(), file, include_paths, line_number))
  	return files
function_tokens: def find_includes ( env , file , include_paths ) : includeExpression = re . compile ( r'<include>(\S+)</include>' , re . M ) files = [ ] for line_number , line in enumerate ( open ( file ) . readlines ( ) ) : match = includeExpression . search ( line ) if match : files . append ( find_include_file ( match . group ( 1 ) . strip ( ) , file , include_paths , line_number ) ) return files