diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-12 16:31:27 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-12 16:31:27 -0800 |
commit | 6fbf4a2f9919407f80cb7256e3723502f44c1f37 (patch) | |
tree | 9a48510b0e08d6bf714685d7372125e9b5547ce2 /sphinx/util/jsdump.py | |
parent | b6fb8083179452c0b7240653891c299b5429f990 (diff) | |
download | sphinx-git-6fbf4a2f9919407f80cb7256e3723502f44c1f37.tar.gz |
Deprecate sphinx.util.pycompat.u
It is now simply a constant equal to the empty string. Provides no
further utility.
Diffstat (limited to 'sphinx/util/jsdump.py')
-rw-r--r-- | sphinx/util/jsdump.py | 4 |
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("""\ |