Skip to content

Commit 7c29218

Browse files
gh-122311: Fix typo in the pickle error formatting code (GH-122312)
1 parent dcafb36 commit 7c29218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pickle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ def _save_toplevel_by_name(self, module_name, name):
11531153
except UnicodeEncodeError:
11541154
raise PicklingError(
11551155
"can't pickle global identifier '%s.%s' using "
1156-
"pickle protocol %i" % (module, name, self.proto)) from None
1156+
"pickle protocol %i" % (module_name, name, self.proto)) from None
11571157

11581158
def save_type(self, obj):
11591159
if obj is type(None):

0 commit comments

Comments
 (0)