#3077: fix h2py substitution of character literals.

This commit is contained in:
Georg Brandl 2010-10-21 13:29:10 +00:00
parent a847ccbeae
commit 9c14f2f343
1 changed files with 1 additions and 1 deletions

View File

@ -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)