Fix PyON escape sequences
This commit is contained in:
parent
9b619ae644
commit
574de16fdd
@ -1,6 +1,12 @@
|
|||||||
Folding@home Advanced Control Changelog
|
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
|
## v7.6.15
|
||||||
- Removed ``gpu-index``, ``opencl-index`` and ``cuda-index`` config.
|
- 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':
|
elif esc == 'x':
|
||||||
# Hex escape sequence
|
# Hex escape sequence
|
||||||
try:
|
|
||||||
code = s[end + 1: end + 3]
|
code = s[end + 1: end + 3]
|
||||||
char = code.decode('hex')
|
try:
|
||||||
|
char = unichr(int(code, 16))
|
||||||
except:
|
except:
|
||||||
raise ValueError(errmsg('Invalid \\escape: ' + repr(code), s, end))
|
raise ValueError(errmsg('Invalid \\escape: ' + repr(code), s, end))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user