Commit af6c5474 authored by Mariatta's avatar Mariatta Committed by GitHub

Fix trivial typo in json module docstring (GH-2274) (GH-2432)

(cherry picked from commit 76c567ee)
parent 2b92cd3b
......@@ -78,7 +78,7 @@ Specializing JSON object encoding::
>>> def encode_complex(obj):
... if isinstance(obj, complex):
... return [obj.real, obj.imag]
... raise TypeError(repr(o) + " is not JSON serializable")
... raise TypeError(repr(obj) + " is not JSON serializable")
...
>>> json.dumps(2 + 1j, default=encode_complex)
'[2.0, 1.0]'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment