Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cext/base85.c @ 48901:ed03fffaac30
cext: remove Python 2 module initializer functions
We no longer need these since we dropped support for Python 2.
Differential Revision: https://phab.mercurial-scm.org/D12221
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 15:40:39 -0700 |
parents | 763b45bc4483 |
children | b0dd39b91e7a |
line wrap: on
line diff
--- a/mercurial/cext/base85.c Mon Feb 21 19:51:23 2022 +0000 +++ b/mercurial/cext/base85.c Sun Feb 20 15:40:39 2022 -0700 @@ -177,7 +177,6 @@ static const int version = 1; -#ifdef IS_PY3K static struct PyModuleDef base85_module = { PyModuleDef_HEAD_INIT, "base85", base85_doc, -1, methods, }; @@ -191,13 +190,3 @@ PyModule_AddIntConstant(m, "version", version); return m; } -#else -PyMODINIT_FUNC initbase85(void) -{ - PyObject *m; - m = Py_InitModule3("base85", methods, base85_doc); - - b85prep(); - PyModule_AddIntConstant(m, "version", version); -} -#endif