diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-02-17 22:11:14 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-02-18 01:58:05 +0000 |
commit | c8f4a03daceef4470ddbc34d5879ffd01588a116 (patch) | |
tree | b67cbca3c86b239e84e00b2ca5966e3c273ca18a /sphinx/util/jsdump.py | |
parent | 8de6638697b8c785f8022e1f526b549e74d033d1 (diff) | |
download | sphinx-git-c8f4a03daceef4470ddbc34d5879ffd01588a116.tar.gz |
Fix COM812
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 e2014716b..4a14fbf6c 100644 --- a/sphinx/util/jsdump.py +++ b/sphinx/util/jsdump.py @@ -90,7 +90,7 @@ def dumps(obj: Any, key: bool = False) -> str: return str(obj) elif isinstance(obj, dict): return '{%s}' % ','.join( - sorted(f'{dumps(key, True)}:{dumps(value)}' for key, value in obj.items()) + sorted(f'{dumps(key, True)}:{dumps(value)}' for key, value in obj.items()), ) elif isinstance(obj, set): return '[%s]' % ','.join(sorted(dumps(x) for x in obj)) |