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
|
||||
option = line[0:index]
|
||||
option = option.strip()
|
||||
value = line[index+1:]
|
||||
value = value.strip()
|
||||
value = line[index+2:-1]
|
||||
if string.find(option, 'password') == -1:
|
||||
try:
|
||||
i = string.atoi(value)
|
||||
|
|
Loading…
Reference in New Issue