We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc36a28 commit 86b8f6cCopy full SHA for 86b8f6c
nibabel/nicom/ascconv.py
@@ -205,7 +205,7 @@ def parse_ascconv(ascconv_str, str_delim='"'):
205
attrs, content = ASCCONV_RE.match(ascconv_str).groups()
206
attrs = OrderedDict((tuple(x.split('=')) for x in attrs.split()))
207
# Normalize string start / end markers to something Python understands
208
- content = content.replace(str_delim, '"""')
+ content = content.replace(str_delim, '"""').replace("\\", "\\\\")
209
# Use Python's own parser to parse modified ASCCONV assignments
210
tree = ast.parse(content)
211
0 commit comments