mirror of
https://github.com/python/cpython.git
synced 2025-09-14 20:56:06 +00:00
Fix a typo in _make_class_unpicklable() docstring (GH-26729)
(cherry picked from commit 689a84475e
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
This commit is contained in:
parent
c3b776f83b
commit
f6cf38c8e2
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ def _make_class_unpicklable(obj):
|
|||
"""
|
||||
Make the given obj un-picklable.
|
||||
|
||||
obj should be either a dictionary, on an Enum
|
||||
obj should be either a dictionary, or an Enum
|
||||
"""
|
||||
def _break_on_call_reduce(self, proto):
|
||||
raise TypeError('%r cannot be pickled' % self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue