Skip to content
Snippets Groups Projects
Commit 5f8bffc0 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

optparser can now restore values that have spaces at the begining or at the end

parent 40e247e2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment