Skip to content

Commit

Permalink
pythongh-82951: Fix typo in pickle
Browse files Browse the repository at this point in the history
It was introduced in the previous commit.
  • Loading branch information
serhiy-storchaka committed Jul 26, 2024
1 parent 5f60011 commit 90fbf6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 90fbf6b

Please sign in to comment.