mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Update Mystery.py
Ignore comments in yaml files.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user