changeset 30090:8abe9264c73a

parsers: return NULL from PyInit_parsers on Python 3 This function must return a PyObject* or the compiler complains.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Oct 2016 17:51:29 +0200
parents 040f23ed6963
children d576b7394646
files mercurial/parsers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/parsers.c	Wed Oct 05 13:45:22 2016 +0200
+++ b/mercurial/parsers.c	Sat Oct 08 17:51:29 2016 +0200
@@ -2880,7 +2880,7 @@
 	PyObject *mod;
 
 	if (check_python_version() == -1)
-		return;
+		return NULL;
 	mod = PyModule_Create(&parsers_module);
 	module_init(mod);
 	return mod;