Fix PyON escape sequences

This commit is contained in:
Joseph Coffland 2020-10-12 14:45:27 -07:00
parent 9b619ae644
commit 574de16fdd
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,12 @@
Folding@home Advanced Control Changelog
=======================================
## v7.6.20
- Fix PyON escape sequences.
## v7.6.19
- Use modified JSON parser to parse PyON.
## v7.6.15
- Removed ``gpu-index``, ``opencl-index`` and ``cuda-index`` config.

View File

@ -125,9 +125,9 @@ def pyon_scanstring(s, end, encoding = None, strict = True,
elif esc == 'x':
# Hex escape sequence
code = s[end + 1: end + 3]
try:
code = s[end + 1: end + 3]
char = code.decode('hex')
char = unichr(int(code, 16))
except:
raise ValueError(errmsg('Invalid \\escape: ' + repr(code), s, end))