Kaydet (Commit) 9c14f2f3 authored tarafından Georg Brandl's avatar Georg Brandl

#3077: fix h2py substitution of character literals.

üst a847ccbe
...@@ -87,7 +87,7 @@ def pytify(body): ...@@ -87,7 +87,7 @@ def pytify(body):
for p in ignores: for p in ignores:
body = p.sub(' ', body) body = p.sub(' ', body)
# replace char literals by ord(...) # replace char literals by ord(...)
body = p_char.sub('ord(\\0)', body) body = p_char.sub("ord('\\1')", body)
# Compute negative hexadecimal constants # Compute negative hexadecimal constants
start = 0 start = 0
UMAX = 2*(sys.maxsize+1) UMAX = 2*(sys.maxsize+1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment