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

(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:09:52 +02:00 committed by GitHub
parent 0300e33b22
commit 73531067f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1151,7 +1151,7 @@ class _Pickler:
except UnicodeEncodeError: except UnicodeEncodeError:
raise PicklingError( raise PicklingError(
"can't pickle global identifier '%s.%s' using " "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): def save_type(self, obj):
if obj is type(None): if obj is type(None):