From 151b4c1d110b2984b0af2d419c6485169f8305e7 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Wed, 18 Feb 2015 17:42:20 +0000 Subject: Fixed a typo in the docs --- index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.rst') diff --git a/index.rst b/index.rst index 47c4d17..fedf7ee 100644 --- a/index.rst +++ b/index.rst @@ -101,7 +101,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]' -- cgit v1.2.1