Skip to content

Commit 979cc18

Browse files
skirpichevvstinner
andauthored
Update Modules/_struct.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 628aadd commit 979cc18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_struct.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,8 +1773,8 @@ actual___init___impl(PyStructObject *self, PyObject *format)
17731773
Py_DECREF(format);
17741774
PyErr_Format(PyExc_TypeError,
17751775
"Struct() argument 1 must be a str or bytes object, "
1776-
"not %.200s",
1777-
_PyType_Name(Py_TYPE(format)));
1776+
"not %T",
1777+
format);
17781778
return -1;
17791779
}
17801780
Py_SETREF(self->s_format, format);

0 commit comments

Comments
 (0)