This commit is contained in:
Overwatch 2015-02-08 14:45:22 +01:00
parent 1f112c32c5
commit 08e95af197

View file

@ -20,6 +20,8 @@ def _parse(data, dtype):
if dtype == 'str': if dtype == 'str':
if data.startswith('"') and data.endswith('"'): if data.startswith('"') and data.endswith('"'):
value = data[1:-1].replace('\\"', '"') value = data[1:-1].replace('\\"', '"')
elif data.startswith('\'') and data.endswith('\''):
value = data[1:-1].replace('\\\'', '\'')
else: else:
raise RuntimeError raise RuntimeError