Skip to content

Commit 48290c1

Browse files
Mariattaned-deily
authored andcommitted
[3.6] Fix trivial typo in json module docstring (GH-2274) (#2430)
(cherry picked from commit 76c567e)
1 parent a3ca94d commit 48290c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/json/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
>>> def encode_complex(obj):
7777
... if isinstance(obj, complex):
7878
... return [obj.real, obj.imag]
79-
... raise TypeError(repr(o) + " is not JSON serializable")
79+
... raise TypeError(repr(obj) + " is not JSON serializable")
8080
...
8181
>>> json.dumps(2 + 1j, default=encode_complex)
8282
'[2.0, 1.0]'

0 commit comments

Comments
 (0)