forked from r4sas/PBinCLI
Set maxsplit in configuration parser (#34)
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
3c2cdb10ac
commit
f05f65ea61
@ -23,7 +23,7 @@ def read_config(filename):
|
|||||||
if len(l.strip()) == 0:
|
if len(l.strip()) == 0:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
key, value = l.strip().split("=")
|
key, value = l.strip().split("=", 1)
|
||||||
settings[key.strip()] = value.strip()
|
settings[key.strip()] = value.strip()
|
||||||
except ValueError:
|
except ValueError:
|
||||||
PBinCLIError("Unable to parse config file, please check it for errors.")
|
PBinCLIError("Unable to parse config file, please check it for errors.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user