Skip to content

Commit 238c40e

Browse files
committed
Remove return check for endian table init
1 parent c4f577f commit 238c40e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Modules/_struct.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,10 +2758,7 @@ _structmodule_exec(PyObject *m)
27582758
return -1;
27592759
}
27602760

2761-
/* Check endian and swap in faster functions */
2762-
if (_PyOnceFlag_CallOnce(&endian_tables_init_once, init_endian_tables, NULL) == -1) {
2763-
return -1;
2764-
}
2761+
_PyOnceFlag_CallOnce(&endian_tables_init_once, init_endian_tables, NULL);
27652762

27662763
/* Add some symbolic constants to the module */
27672764
state->StructError = PyErr_NewException("struct.error", NULL, NULL);

0 commit comments

Comments
 (0)