diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-07-01 01:15:18 (GMT) |
---|---|---|
committer | Ned Deily <nad@python.org> | 2017-07-01 01:15:18 (GMT) |
commit | 48290c1c3023b2386b229f133b8629ffe5e7dd47 (patch) | |
tree | d27830c5d99ba57f7e8143bad13bcfe58ca03abb /Lib/json | |
parent | a3ca94d0504157a112a1f89bfe8be1307116fc73 (diff) | |
download | cpython-48290c1c3023b2386b229f133b8629ffe5e7dd47.zip cpython-48290c1c3023b2386b229f133b8629ffe5e7dd47.tar.gz cpython-48290c1c3023b2386b229f133b8629ffe5e7dd47.tar.bz2 |
[3.6] Fix trivial typo in json module docstring (GH-2274) (#2430)
(cherry picked from commit 76c567ee27342d76f631a35c8291b715b2a61f3e)
Diffstat (limited to 'Lib/json')
-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 b8d5e6c..6d0511e 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]' |