Skip to content

Commit

Permalink
[3.6] Fix trivial typo in json module docstring (GH-2274) (#2430)
Browse files Browse the repository at this point in the history
(cherry picked from commit 76c567e)
  • Loading branch information
Mariatta authored and ned-deily committed Jul 1, 2017
1 parent a3ca94d commit 48290c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/json/__init__.py
Expand Up @@ -76,7 +76,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]'
Expand Down

0 comments on commit 48290c1

Please sign in to comment.