From 79e18ec75d28fbb2f5a9d1d030a10d66ced38742 Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Mon, 18 Nov 2019 23:16:23 -0800 Subject: [PATCH] Clean up module initialization. (GH-17215) --- Modules/_statisticsmodule.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Modules/_statisticsmodule.c b/Modules/_statisticsmodule.c index a646e96d016..fcdc9cee4d1 100644 --- a/Modules/_statisticsmodule.c +++ b/Modules/_statisticsmodule.c @@ -144,7 +144,5 @@ static struct PyModuleDef statisticsmodule = { PyMODINIT_FUNC PyInit__statistics(void) { - PyObject *m = PyModule_Create(&statisticsmodule); - if (!m) return NULL; - return m; + return PyModule_Create(&statisticsmodule); }