]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] doc: Use super() in subclassed JSONEncoder examples (GH-115565) (GH-116047)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Feb 2024 14:13:08 +0000 (15:13 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 14:13:08 +0000 (14:13 +0000)
commit9df6d1e03338d1d7bc12e0c5e9e2559e2a3ab706
tree9dc6be92c2e3ec03d1edb47c0a616773dae7ccab
parente5e98626a15dd62eccbb6a281ae0263f005f4942
[3.12] doc: Use super() in subclassed JSONEncoder examples (GH-115565) (GH-116047)

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.
(cherry picked from commit 647053fed182066d3b8c934fb0bf52ee48ff3911)

Co-authored-by: Jan Max Meyer <jmm@phorward.de>
Doc/library/json.rst
Lib/json/encoder.py