contentdb/app/tasks/minetestcheck/config.py

11 lines
208 B
Python
Raw Normal View History

2020-01-19 02:22:33 +01:00
def parse_conf(string):
retval = {}
for line in string.split("\n"):
idx = line.find("=")
if idx > 0:
key = line[:idx].strip()
value = line[idx+1:].strip()
retval[key] = value
return retval