summaryrefslogtreecommitdiff
path: root/sphinx/util/jsdump.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/jsdump.py')
-rw-r--r--sphinx/util/jsdump.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py
index 6502f2408..52522f255 100644
--- a/sphinx/util/jsdump.py
+++ b/sphinx/util/jsdump.py
@@ -15,7 +15,6 @@ import re
if False:
# For type annotation
from typing import Any, Dict, IO, List, Match, Union # NOQA
- from sphinx.util.typing import unicode # NOQA
_str_re = re.compile(r'"(\\\\|\\"|[^"])*"')
_int_re = re.compile(r'\d+')
@@ -40,7 +39,7 @@ ESCAPED = re.compile(r'\\u.{4}|\\.')
def encode_string(s):
# type: (str) -> str
def replace(match):
- # type: (Match) -> unicode
+ # type: (Match) -> str
s = match.group(0)
try:
return ESCAPE_DICT[s]