Merge pull request #7 from CaitSith2/patch-3

Update Mystery.py
This commit is contained in:
Fabian Dill
2020-01-19 21:53:13 +01:00
committed by GitHub

View File

@@ -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)