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

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