[Python-checkins] Fix a typo in _make_class_unpicklable() docstring (GH-26729)

miss-islington webhook-mailer at python.org
Tue Jun 15 14:25:17 EDT 2021


https://github.com/python/cpython/commit/f6cf38c8e2240c6dd94664d8dffd8ff42cacbc42
commit: f6cf38c8e2240c6dd94664d8dffd8ff42cacbc42
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-06-15T11:25:07-07:00
summary:

Fix a typo in _make_class_unpicklable() docstring (GH-26729)

(cherry picked from commit 689a84475e7b1da79d5ae82df67ab8897316f98c)

Co-authored-by: andrei kulakov <andrei.avk at gmail.com>

files:
M Lib/enum.py

diff --git a/Lib/enum.py b/Lib/enum.py
index bf3460ca0fd43..9f9c89e8a4b26 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)



More information about the Python-checkins mailing list