- fixed cfg file parsing for strings
- fixes in over.core.cmd
This commit is contained in:
parent
e71cedf58c
commit
f1ada6f32f
2 changed files with 11 additions and 3 deletions
|
@ -17,9 +17,10 @@ prefix = textui.prefix
|
|||
# --------------------------------------------------
|
||||
|
||||
def _parse(data, dtype):
|
||||
print('### called _parse(%s, %s)' %(repr(data), repr(dtype)))
|
||||
if dtype == 'str':
|
||||
if data.startswith('\'') and data.endswith('\''):
|
||||
value = data[1:-1].replace('\\\'', '\'')
|
||||
if data.startswith('"') and data.endswith('"'):
|
||||
value = data[1:-1].replace('\\"', '"')
|
||||
else:
|
||||
raise RuntimeError
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue