Skip to content

Commit 9c14f2f

Browse files
committed
#3077: fix h2py substitution of character literals.
1 parent a847ccb commit 9c14f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/scripts/h2py.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def pytify(body):
8787
for p in ignores:
8888
body = p.sub(' ', body)
8989
# replace char literals by ord(...)
90-
body = p_char.sub('ord(\\0)', body)
90+
body = p_char.sub("ord('\\1')", body)
9191
# Compute negative hexadecimal constants
9292
start = 0
9393
UMAX = 2*(sys.maxsize+1)

0 commit comments

Comments
 (0)