diff options
author | Brandt Bucher <brandtbucher@gmail.com> | 2019-11-19 07:16:23 (GMT) |
---|---|---|
committer | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-11-19 07:16:23 (GMT) |
commit | 79e18ec75d28fbb2f5a9d1d030a10d66ced38742 (patch) | |
tree | 66f984eb7f2b8c29bc279e997a0a5f40ffa18a23 /Modules | |
parent | fe75b62575bcfdf1c39be71c1e50257832a596db (diff) | |
download | cpython-79e18ec75d28fbb2f5a9d1d030a10d66ced38742.zip cpython-79e18ec75d28fbb2f5a9d1d030a10d66ced38742.tar.gz cpython-79e18ec75d28fbb2f5a9d1d030a10d66ced38742.tar.bz2 |
Clean up module initialization. (GH-17215)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_statisticsmodule.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_statisticsmodule.c b/Modules/_statisticsmodule.c index a646e96..fcdc9ce 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); } |