mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
Fix bug in Conf file parser
This commit is contained in:
parent
1e440d4523
commit
46b7c38d59
@ -114,7 +114,7 @@ def parseConf(string):
|
|||||||
for line in string.split("\n"):
|
for line in string.split("\n"):
|
||||||
idx = line.find("=")
|
idx = line.find("=")
|
||||||
if idx > 0:
|
if idx > 0:
|
||||||
key = line[:idx-1].strip()
|
key = line[:idx].strip()
|
||||||
value = line[idx+1:].strip()
|
value = line[idx+1:].strip()
|
||||||
retval[key] = value
|
retval[key] = value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user