Make hb_test_tools.py work in Python 3.13

pull/4977/head
David Corbett 2 months ago committed by Behdad Esfahbod
parent f887096ab1
commit edb3b20895
  1. 4
      test/shape/hb_test_tools.py

@ -1,6 +1,6 @@
#!/usr/bin/env python3
import sys, os, re, difflib, unicodedata, errno, cgi, itertools
import sys, os, re, difflib, unicodedata, errno, html, itertools
from itertools import *
diff_symbols = "-+=*&^%$#@!~/"
@ -45,7 +45,7 @@ class ColorFormatter:
def end_color ():
return '</span>'
@staticmethod
def escape (s): return cgi.escape (s)
def escape (s): return html.escape (s)
@staticmethod
def newline (): return '<br/>\n'

Loading…
Cancel
Save