summaryrefslogtreecommitdiff
path: root/sphinx/util/jsdump.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-22 18:47:30 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-22 18:47:30 +0900
commit5640cf879f91c8ca5e71b68ab5a5fd24b536703a (patch)
tree6fc2107d8adc1ade4f9a8ca260db4e156fdde609 /sphinx/util/jsdump.py
parente83bb29789a093c651a255a509430a03346a5afb (diff)
parent43c089fd28dfdc33cc67b364724db51d3f5c1804 (diff)
downloadsphinx-git-5640cf879f91c8ca5e71b68ab5a5fd24b536703a.tar.gz
Merge branch '2.0'
Diffstat (limited to 'sphinx/util/jsdump.py')
-rw-r--r--sphinx/util/jsdump.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py
index bfdba170b..2be48a34a 100644
--- a/sphinx/util/jsdump.py
+++ b/sphinx/util/jsdump.py
@@ -83,7 +83,7 @@ def dumps(obj: Any, key: bool = False) -> str:
if obj is None:
return 'null'
elif obj is True or obj is False:
- return obj and 'true' or 'false'
+ return 'true' if obj else 'false'
elif isinstance(obj, (int, float)):
return str(obj)
elif isinstance(obj, dict):