Fix the single item string quoting function.
This commit is contained in:
parent
757f94bdf3
commit
03be2c5354
@ -61,7 +61,7 @@ class SysConf(configobj.ConfigObj):
|
|||||||
quot_func = (lambda x: str(x))
|
quot_func = (lambda x: str(x))
|
||||||
if value[0] in ['"', "'"] and value[-1] in ['"', "'"]:
|
if value[0] in ['"', "'"] and value[-1] in ['"', "'"]:
|
||||||
if len(value) == 1:
|
if len(value) == 1:
|
||||||
quot_func = self._get_single_quote
|
quot_func = (lambda x: self._get_single_quote(x) % x)
|
||||||
else:
|
else:
|
||||||
# Quote whitespace if it isn't the start + end of a shell command
|
# Quote whitespace if it isn't the start + end of a shell command
|
||||||
white_space_ok = False
|
white_space_ok = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user