mirror of https://github.com/python/cpython
#3077: fix h2py substitution of character literals.
This commit is contained in:
parent
a847ccbeae
commit
9c14f2f343
|
@ -87,7 +87,7 @@ def pytify(body):
|
|||
for p in ignores:
|
||||
body = p.sub(' ', body)
|
||||
# replace char literals by ord(...)
|
||||
body = p_char.sub('ord(\\0)', body)
|
||||
body = p_char.sub("ord('\\1')", body)
|
||||
# Compute negative hexadecimal constants
|
||||
start = 0
|
||||
UMAX = 2*(sys.maxsize+1)
|
||||
|
|
Loading…
Reference in New Issue