Skip to content

Commit 7353106

Browse files
[3.12] gh-122311: Fix typo in the pickle error formatting code (GH-122312) (GH-122315)
(cherry picked from commit 7c29218) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 0300e33 commit 7353106

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
@@ -1151,7 +1151,7 @@ def _save_toplevel_by_name(self, module_name, name):
11511151
except UnicodeEncodeError:
11521152
raise PicklingError(
11531153
"can't pickle global identifier '%s.%s' using "
1154-
"pickle protocol %i" % (module, name, self.proto)) from None
1154+
"pickle protocol %i" % (module_name, name, self.proto)) from None
11551155

11561156
def save_type(self, obj):
11571157
if obj is type(None):

0 commit comments

Comments
 (0)