https://github.com/python/cpython/commit/816a1572e56f7051b861c0f28c91da676e0e4ef8 commit: 816a1572e56f7051b861c0f28c91da676e0e4ef8 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2024-07-26T15:13:59Z summary:
[3.13] gh-122311: Fix typo in the pickle error formatting code (GH-122312) (GH-122314) (cherry picked from commit 7c2921844f9fa713f93152bf3a569812cee347a0) Co-authored-by: Serhiy Storchaka <[email protected]> files: M Lib/pickle.py diff --git a/Lib/pickle.py b/Lib/pickle.py index baf9f1d019c3b6..0c6b1774e02c25 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -1153,7 +1153,7 @@ def _save_toplevel_by_name(self, module_name, name): except UnicodeEncodeError: raise PicklingError( "can't pickle global identifier '%s.%s' using " - "pickle protocol %i" % (module, name, self.proto)) from None + "pickle protocol %i" % (module_name, name, self.proto)) from None def save_type(self, obj): if obj is type(None): _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
