mirror of https://github.com/python/cpython.git
return NULL on error
This commit is contained in:
parent
a22c98de85
commit
52e61449e3
|
@ -1805,7 +1805,7 @@ MODULE_INITFUNC(void)
|
|||
|
||||
version = PyUnicode_FromString(PY_VERSION);
|
||||
if (!version)
|
||||
return;
|
||||
return NULL;
|
||||
PyModule_AddObject(m, "__version__", version);
|
||||
PyModule_AddStringConstant(m, "EXPAT_VERSION",
|
||||
(char *) XML_ExpatVersion());
|
||||
|
|
Loading…
Reference in New Issue