Merge pull request #5632 from jdufresne/super-json

Use super() in SphinxJSONEncoder
This commit is contained in:
Takeshi KOMIYA 2018-11-14 20:02:04 +09:00 committed by GitHub
commit 4fd14cf5e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):