[Python-checkins] cpython (3.1): return NULL on error
benjamin.peterson
python-checkins at python.org
Wed Jun 1 04:39:58 CEST 2011
http://hg.python.org/cpython/rev/0639e630426c
changeset: 70571:0639e630426c
branch: 3.1
parent: 70562:9c23efa3f5c7
user: Benjamin Peterson <benjamin at python.org>
date: Tue May 31 21:38:15 2011 -0500
summary:
return NULL on error
files:
Modules/pyexpat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1805,7 +1805,7 @@
version = PyUnicode_FromString(PY_VERSION);
if (!version)
- return;
+ return NULL;
PyModule_AddObject(m, "__version__", version);
PyModule_AddStringConstant(m, "EXPAT_VERSION",
(char *) XML_ExpatVersion());
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list