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

ethanfurman webhook-mailer at python.org
Mon Jun 14 22:43:18 EDT 2021


https://github.com/python/cpython/commit/689a84475e7b1da79d5ae82df67ab8897316f98c
commit: 689a84475e7b1da79d5ae82df67ab8897316f98c
branch: main
author: andrei kulakov <andrei.avk at gmail.com>
committer: ethanfurman <ethan at stoneleaf.us>
date: 2021-06-14T19:42:46-07:00
summary:

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

files:
M Lib/enum.py

diff --git a/Lib/enum.py b/Lib/enum.py
index 0c6d8c1eb0e54..49c46ea86dbac 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