[Python-checkins] bpo-38823: Clean up _xxtestfuzz initialization. (GH-17216)
Miss Islington (bot)
webhook-mailer at python.org
Wed Nov 20 19:17:07 EST 2019
https://github.com/python/cpython/commit/e5d1f734db135e284af8e8868e7ccc85355952b9
commit: e5d1f734db135e284af8e8868e7ccc85355952b9
branch: master
author: Brandt Bucher <brandtbucher at gmail.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-11-20T16:17:02-08:00
summary:
bpo-38823: Clean up _xxtestfuzz initialization. (GH-17216)
https://bugs.python.org/issue38823
files:
M Modules/_xxtestfuzz/_xxtestfuzz.c
diff --git a/Modules/_xxtestfuzz/_xxtestfuzz.c b/Modules/_xxtestfuzz/_xxtestfuzz.c
index 781dd23500a29..e0694de6719df 100644
--- a/Modules/_xxtestfuzz/_xxtestfuzz.c
+++ b/Modules/_xxtestfuzz/_xxtestfuzz.c
@@ -44,10 +44,5 @@ static struct PyModuleDef _fuzzmodule = {
PyMODINIT_FUNC
PyInit__xxtestfuzz(void)
{
- PyObject *m = NULL;
-
- if ((m = PyModule_Create(&_fuzzmodule)) == NULL) {
- return NULL;
- }
- return m;
+ return PyModule_Create(&_fuzzmodule);
}
More information about the Python-checkins
mailing list