mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +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:
|
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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue