mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
return NULL on error
This commit is contained in:
parent
a22c98de85
commit
52e61449e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue