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.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py
index 17865f956..acdeb3083 100644
--- a/sphinx/util/jsdump.py
+++ b/sphinx/util/jsdump.py
@@ -14,8 +14,6 @@ import re
from six import integer_types, string_types
-from sphinx.util.pycompat import u
-
if False:
# For type annotation
from typing import Any, Dict, IO, List, Match, Union # NOQA
@@ -62,7 +60,7 @@ def encode_string(s):
def decode_string(s):
# type: (str) -> str
- return ESCAPED.sub(lambda m: eval(u + '"' + m.group() + '"'), s)
+ return ESCAPED.sub(lambda m: eval('"' + m.group() + '"'), s)
reswords = set("""\