diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-12-29 23:39:39 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-12-29 23:53:48 +0000 |
commit | b89c33fc0a62419e08a1b4af47f1b564ced92620 (patch) | |
tree | d654773829f271eef9a70bfd7b9abe5e844a6d98 /sphinx/util/jsdump.py | |
parent | 6a132eba5ae523bb7909e457a934bcc1855fba43 (diff) | |
download | sphinx-git-b89c33fc0a62419e08a1b4af47f1b564ced92620.tar.gz |
Enable Ruff's pygrep-hooks checks
Diffstat (limited to 'sphinx/util/jsdump.py')
-rw-r--r-- | sphinx/util/jsdump.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py index 484f35b7e..17a3c6528 100644 --- a/sphinx/util/jsdump.py +++ b/sphinx/util/jsdump.py @@ -51,7 +51,7 @@ def encode_string(s: str) -> str: def decode_string(s: str) -> str: - return ESCAPED.sub(lambda m: eval('"' + m.group() + '"'), s) + return ESCAPED.sub(lambda m: eval('"' + m.group() + '"'), s) # NoQA: PGH001 reswords = set("""\ |