diff options
author | 2011-05-31 21:38:15 -0500 | |
---|---|---|
committer | 2011-05-31 21:38:15 -0500 | |
commit | 52e61449e39b6778d907c65fb2931a2d37c7eef2 (patch) | |
tree | 2a850519b78662d2e1b637190e8639905236db11 /Modules | |
parent | simply use the Python version for pyexpat.__version__ #12221 (diff) | |
download | cpython-52e61449e39b6778d907c65fb2931a2d37c7eef2.tar.gz cpython-52e61449e39b6778d907c65fb2931a2d37c7eef2.tar.bz2 cpython-52e61449e39b6778d907c65fb2931a2d37c7eef2.zip |
return NULL on error
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/pyexpat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 7c610a81ca7..4e806e20f62 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -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()); |