https://github.com/python/cpython/commit/73531067f10353938940bb2ef45ff7fa9af05aee
commit: 73531067f10353938940bb2ef45ff7fa9af05aee
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-07-26T15:09:52Z
summary:

[3.12] gh-122311: Fix typo in the pickle error formatting code (GH-122312) 
(GH-122315)

(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 20182f3d5c1552..8bf9c19237178f 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -1151,7 +1151,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]

Reply via email to