https://github.com/python/cpython/commit/7c2921844f9fa713f93152bf3a569812cee347a0
commit: 7c2921844f9fa713f93152bf3a569812cee347a0
branch: main
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-07-26T14:48:44Z
summary:
gh-122311: Fix typo in the pickle error formatting code (GH-122312)
files:
M Lib/pickle.py
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 2d764980cdf7b2..c6c151b2065f4d 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]