mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
#3077: fix h2py substitution of character literals.
This commit is contained in:
parent
a847ccbeae
commit
9c14f2f343
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue