7 with open(filename,
'r') as file: 10 in_declaration = False 11 for line
in file.readlines():
14 declaration_lines = []
17 in_declaration =
False 18 declaration = yaml.load(
'\n'.join(declaration_lines))
19 declarations.append(declaration)
21 declaration_lines.append(line)