optparser can now restore values that have spaces at the begining or at the end
This commit is contained in:
parent
40e247e220
commit
5f8bffc03f
|
@ -46,8 +46,7 @@ class OptionsParser:
|
||||||
continue
|
continue
|
||||||
option = line[0:index]
|
option = line[0:index]
|
||||||
option = option.strip()
|
option = option.strip()
|
||||||
value = line[index+1:]
|
value = line[index+2:-1]
|
||||||
value = value.strip()
|
|
||||||
if string.find(option, 'password') == -1:
|
if string.find(option, 'password') == -1:
|
||||||
try:
|
try:
|
||||||
i = string.atoi(value)
|
i = string.atoi(value)
|
||||||
|
|
Loading…
Reference in New Issue