From: Mariatta Date: Sat, 1 Jul 2017 01:15:18 +0000 (-0700) Subject: [3.6] Fix trivial typo in json module docstring (GH-2274) (#2430) X-Git-Tag: v3.6.3rc1~276 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48290c1c3023b2386b229f133b8629ffe5e7dd47;p=thirdparty%2FPython%2Fcpython.git [3.6] Fix trivial typo in json module docstring (GH-2274) (#2430) (cherry picked from commit 76c567ee27342d76f631a35c8291b715b2a61f3e) --- diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py index b8d5e6cff8cb..6d0511ebfe90 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]'