Visitar URL original
bpo-31779: Prevent assertion failures and a crash when using an uninitialized struct.Struct object by orenmn · Pull Request #3984 · python/cpython · GitHub
Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
improve the error message
  • Loading branch information
orenmn committed Oct 13, 2017
commit 0e642446bf439913962dc121b5c5ea57e856e65e
2 changes: 1 addition & 1 deletion Modules/_struct.c
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ check_struct(PyStructObject *self)
{
if (self->s_codes == NULL) {
PyErr_SetString(PyExc_ValueError,
"Struct.__init__() not called");
"Struct.__init__() wasn't called");
return 0;
}
return 1;
Expand Down