Fix parsing config file for lines that has no values
This commit is contained in:
parent
4c2cf99fd2
commit
612a3f4401
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ class Config(object):
|
|||
for line in lines:
|
||||
if line.strip() == "[global]":
|
||||
global_line_i = i
|
||||
if line.startswith(key + " ="):
|
||||
if line.startswith(key + " =") or line == key:
|
||||
key_line_i = i
|
||||
i += 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue