mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
[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:
parent
0300e33b22
commit
73531067f1
1 changed files with 1 additions and 1 deletions
|
@ -1151,7 +1151,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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue