diff options
author | Dougal Matthews <dougal@dougalmatthews.com> | 2015-02-18 17:42:20 +0000 |
---|---|---|
committer | Dougal Matthews <dougal@dougalmatthews.com> | 2015-02-18 17:42:20 +0000 |
commit | 151b4c1d110b2984b0af2d419c6485169f8305e7 (patch) | |
tree | e2fc7d18459e8d0c1226242dc91dfbc33ddc0340 /index.rst | |
parent | d52cd59d28766c72314537e2a087665b8b54fa9b (diff) | |
download | simplejson-151b4c1d110b2984b0af2d419c6485169f8305e7.tar.gz |
Fixed a typo in the docs
Diffstat (limited to 'index.rst')
-rw-r--r-- | index.rst | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]' |