mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-05 04:58:13 -07: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