mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-122311: Fix typo in the pickle error formatting code (GH-122312)
This commit is contained in:
parent
dcafb362f7
commit
7c2921844f
1 changed files with 1 additions and 1 deletions
|
|
@ -1153,7 +1153,7 @@ def _save_toplevel_by_name(self, module_name, name):
|
|||
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