diff options
Diffstat (limited to 'sphinx/builders/htmlhelp.py')
-rw-r--r-- | sphinx/builders/htmlhelp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py index 6a4ce77d7..96db0d98f 100644 --- a/sphinx/builders/htmlhelp.py +++ b/sphinx/builders/htmlhelp.py @@ -171,7 +171,7 @@ chm_locales = { def chm_htmlescape(*args, **kwargs): - # type: (*Any, **Any) -> unicode + # type: (*Any, **Any) -> str """ chm_htmlescape() is a wrapper of htmlescape(). .hhc/.hhk files don't recognize hex escaping, we need convert @@ -180,7 +180,7 @@ def chm_htmlescape(*args, **kwargs): quote `'`, this wrapper fixes this. """ def convert(matchobj): - # type: (Match[unicode]) -> unicode + # type: (Match[str]) -> str codepoint = int(matchobj.group(1), 16) return '&#%d;' % codepoint return re.sub(r'&#[xX]([0-9a-fA-F]+);', |