From 5d1554a2eb00938f3d5a3e18b6244dd023fc9339 Mon Sep 17 00:00:00 2001 From: Kit Sunde Date: Tue, 11 Jul 2017 04:05:25 +0800 Subject: [PATCH] json Docs: Trivial update to the code example (GH-2465) Replace `dumps` with `json.dumps` --- Doc/library/json.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/json.rst b/Doc/library/json.rst index c4d5ee6ec1..87dc0541dc 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -89,7 +89,7 @@ Extending :class:`JSONEncoder`:: ... # Let the base class default method raise the TypeError ... return json.JSONEncoder.default(self, obj) ... - >>> dumps(2 + 1j, cls=ComplexEncoder) + >>> json.dumps(2 + 1j, cls=ComplexEncoder) '[2.0, 1.0]' >>> ComplexEncoder().encode(2 + 1j) '[2.0, 1.0]' -- 2.50.1