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

This commit is contained in:
Yann Leboulanger 2005-04-05 21:05:06 +00:00
parent 40e247e220
commit 5f8bffc03f
1 changed files with 1 additions and 2 deletions

View File

@ -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)