]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
doc: Use super() in subclassed JSONEncoder examples (GH-115565)
authorJan Max Meyer <jmm@phorward.de>
Wed, 28 Feb 2024 13:54:12 +0000 (14:54 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 13:54:12 +0000 (14:54 +0100)
commit647053fed182066d3b8c934fb0bf52ee48ff3911
tree7744fbebf95291922cc730f4fd5063da93beca2e
parent449c6da2bdc5c6aa5e096aa550a4ba377b85db46
doc: Use super() in subclassed JSONEncoder examples (GH-115565)

Replace calls to `json.JSONEncoder.default(self, obj)`
by `super().default(obj)` within the examples of the documentation.
Doc/library/json.rst
Lib/json/encoder.py