From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 26 Jul 2024 15:13:59 +0000 (+0200) Subject: [3.13] gh-122311: Fix typo in the pickle error formatting code (GH-122312) (GH-122314) X-Git-Tag: v3.13.0rc1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=816a1572e56f7051b861c0f28c91da676e0e4ef8;p=thirdparty%2FPython%2Fcpython.git [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 --- diff --git a/Lib/pickle.py b/Lib/pickle.py index baf9f1d019c3..0c6b1774e02c 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):