# HG changeset patch # User Dougal Matthews <dougal@dougalmatthews.com> # Date 1424281340 0 # Wed Feb 18 17:42:20 2015 +0000 # Node ID 03973eed23214d2ef413620f337fd03297f9ffb5 # Parent c1847083a8ba953e88d30cda674df89dc054a392 Fixed a typo in the docs diff --git a/index.rst b/index.rst --- a/index.rst +++ b/index.rst @@ -101,7 +101,7 @@ >>> 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]'