Skip to content

Commit 816a157

Browse files
[3.13] gh-122311: Fix typo in the pickle error formatting code (GH-122312) (GH-122314)
(cherry picked from commit 7c29218) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 9162da2 commit 816a157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pickle.py

+1-1
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)