summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandrei kulakov <andrei.avk@gmail.com>2021-06-14 22:42:46 -0400
committerGitHub <noreply@github.com>2021-06-14 19:42:46 -0700
commit689a84475e7b1da79d5ae82df67ab8897316f98c (patch)
treed1016d17c2079860a0d7e4807cc728726a5295a3
parent507ed6fa1d6661e0f8e6d3282764aa9625a99594 (diff)
downloadcpython-git-689a84475e7b1da79d5ae82df67ab8897316f98c.tar.gz
Fix a typo in _make_class_unpicklable() docstring (GH-26729)
-rw-r--r--Lib/enum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index 0c6d8c1eb0..49c46ea86d 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -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)