Fix PyON escape sequences
This commit is contained in:
parent
9b619ae644
commit
574de16fdd
|
@ -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.
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue