mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5632 from jdufresne/super-json
Use super() in SphinxJSONEncoder
This commit is contained in:
commit
4fd14cf5e1
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user