# HG changeset patch # User Gregory Szorc # Date 2016-10-08 15:51:29 # Node ID 8abe9264c73a2ffd1c0550535c721e3c4d451c6c # Parent 040f23ed6963a4766a5e1057cc9b4ff7ca465e1f parsers: return NULL from PyInit_parsers on Python 3 This function must return a PyObject* or the compiler complains. diff --git a/mercurial/parsers.c b/mercurial/parsers.c --- a/mercurial/parsers.c +++ b/mercurial/parsers.c @@ -2880,7 +2880,7 @@ PyMODINIT_FUNC PyInit_parsers(void) PyObject *mod; if (check_python_version() == -1) - return; + return NULL; mod = PyModule_Create(&parsers_module); module_init(mod); return mod;