diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-07-06 03:55:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-06 03:55:18 (GMT) |
commit | 10df96affd0f3e21a7750db98038f8419b91db95 (patch) | |
tree | d6a77bb17d8679fcbb4867b59121b7fa9995a99a | |
parent | c48a000c74b48586742c4b7eb42bba93f15953a9 (diff) | |
download | cpython-10df96affd0f3e21a7750db98038f8419b91db95.zip cpython-10df96affd0f3e21a7750db98038f8419b91db95.tar.gz cpython-10df96affd0f3e21a7750db98038f8419b91db95.tar.bz2 |
Fix trivial typo in json module docstring (GH-2274) (GH-2431)
(cherry picked from commit 76c567ee27342d76f631a35c8291b715b2a61f3e)
-rw-r--r-- | Lib/json/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py index 1118b0e..ca2c611 100644 --- a/Lib/json/__init__.py +++ b/Lib/json/__init__.py @@ -76,7 +76,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]' |