parent
2f575d230c
commit
154260d131
|
@ -14,6 +14,9 @@ def parse_yaml(txt):
|
|||
ret = {}
|
||||
indents = {len(txt) - len(txt.lstrip(' ')): ret}
|
||||
for line in txt.splitlines():
|
||||
if not line:
|
||||
continue
|
||||
line = line.split('#')[0]
|
||||
if not line:
|
||||
continue
|
||||
name, val = line.split(':', 1)
|
||||
|
|
Loading…
Reference in New Issue