summaryrefslogtreecommitdiff
path: root/sphinx/util/jsonimpl.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-11-13 21:22:30 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-11-13 21:22:30 -0800
commit8c46a94bcacb8d98cb0e22cf594410ab4452bef3 (patch)
tree497ed3e80ba09941341723701e9490799760e534 /sphinx/util/jsonimpl.py
parent45ad2e41a56a7fad0d9c3e8c32c54949c96bfa25 (diff)
downloadsphinx-git-8c46a94bcacb8d98cb0e22cf594410ab4452bef3.tar.gz
Use super() in SphinxJSONEncoder
This case was missed as part of 710ca3d7c3a41296861b0be79b9904246477968d.
Diffstat (limited to 'sphinx/util/jsonimpl.py')
-rw-r--r--sphinx/util/jsonimpl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/jsonimpl.py b/sphinx/util/jsonimpl.py
index fbaa72978..e76ba6a0f 100644
--- a/sphinx/util/jsonimpl.py
+++ b/sphinx/util/jsonimpl.py
@@ -25,7 +25,7 @@ class SphinxJSONEncoder(json.JSONEncoder):
# type: (Any) -> unicode
if isinstance(obj, UserString):
return text_type(obj)
- return json.JSONEncoder.default(self, obj)
+ return super(SphinxJSONEncoder, self).default(obj)
def dump(obj, fp, *args, **kwds):