diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-07-06 03:55:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-06 03:55:30 (GMT) |
commit | af6c5474cc133665d719f25281b10ecf0b303545 (patch) | |
tree | 6bb50597651f9e55892171582192a67045926390 | |
parent | 2b92cd3b16ba83aaaf11a91a19845ca6804663d9 (diff) | |
download | cpython-af6c5474cc133665d719f25281b10ecf0b303545.zip cpython-af6c5474cc133665d719f25281b10ecf0b303545.tar.gz cpython-af6c5474cc133665d719f25281b10ecf0b303545.tar.bz2 |
Fix trivial typo in json module docstring (GH-2274) (GH-2432)
(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 d1be041..ce62361 100644 --- a/Lib/json/__init__.py +++ b/Lib/json/__init__.py @@ -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]' |