--- /usr/share/doc/python2.5/examples/Tools/scripts/h2py.py 2008-04-21 14:28:21.000000000 +0200 +++ h2py.py 2008-06-10 14:49:26.000000000 +0200 @@ -94,8 +94,8 @@ # replace ignored patterns by spaces for p in ignores: body = p.sub(' ', body) - # replace char literals by ord(...) - body = p_char.sub('ord(\\0)', body) + # replace char literals by their string value + body = p_char.sub("'\\1'", body) # Compute negative hexadecimal constants start = 0 UMAX = 2*(sys.maxint+1)