fixes #1
This commit is contained in:
parent
1f112c32c5
commit
08e95af197
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ def _parse(data, dtype):
|
|||
if dtype == 'str':
|
||||
if data.startswith('"') and data.endswith('"'):
|
||||
value = data[1:-1].replace('\\"', '"')
|
||||
elif data.startswith('\'') and data.endswith('\''):
|
||||
value = data[1:-1].replace('\\\'', '\'')
|
||||
else:
|
||||
raise RuntimeError
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue