diff -r 1d5fd9def5ac -r ed03fffaac30 mercurial/cext/parsers.c --- a/mercurial/cext/parsers.c Mon Feb 21 19:51:23 2022 +0000 +++ b/mercurial/cext/parsers.c Sun Feb 20 15:40:39 2022 -0700 @@ -1307,7 +1307,6 @@ return 0; } -#ifdef IS_PY3K static struct PyModuleDef parsers_module = {PyModuleDef_HEAD_INIT, "parsers", parsers_doc, -1, methods}; @@ -1321,15 +1320,3 @@ module_init(mod); return mod; } -#else -PyMODINIT_FUNC initparsers(void) -{ - PyObject *mod; - - if (check_python_version() == -1) { - return; - } - mod = Py_InitModule3("parsers", methods, parsers_doc); - module_init(mod); -} -#endif