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

(cherry picked from commit 7c2921844f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2024-07-26 17:13:59 +02:00 committed by GitHub
parent 9162da254a
commit 816a1572e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):