mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
Make hb_test_tools.py work in Python 3.13
This commit is contained in:
1 parent
f887096ab1
commit
edb3b20895
1 file changed
+2
-2
@@ -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'
|
||||
|
||||
|
||||
Reference in new issue
Block a user