From 7c2921844f9fa713f93152bf3a569812cee347a0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 26 Jul 2024 17:48:44 +0300 Subject: [PATCH] gh-122311: Fix typo in the pickle error formatting code (GH-122312) --- Lib/pickle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/pickle.py b/Lib/pickle.py index 2d764980cdf..c6c151b2065 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -1153,7 +1153,7 @@ class _Pickler: 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):