summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrei kulakov <andrei.avk@gmail.com>2021-06-15 02:42:46 (GMT)
committerGitHub <noreply@github.com>2021-06-15 02:42:46 (GMT)
commit689a84475e7b1da79d5ae82df67ab8897316f98c (patch)
treed1016d17c2079860a0d7e4807cc728726a5295a3
parent507ed6fa1d6661e0f8e6d3282764aa9625a99594 (diff)
downloadcpython-689a84475e7b1da79d5ae82df67ab8897316f98c.zip
cpython-689a84475e7b1da79d5ae82df67ab8897316f98c.tar.gz
cpython-689a84475e7b1da79d5ae82df67ab8897316f98c.tar.bz2
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 0c6d8c1..49c46ea 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)