mercurial/cext/mpatch.c
changeset 48810 ed03fffaac30
parent 46819 d4ba4d51f85f
child 48821 b0dd39b91e7a
--- a/mercurial/cext/mpatch.c	Mon Feb 21 19:51:23 2022 +0000
+++ b/mercurial/cext/mpatch.c	Sun Feb 20 15:40:39 2022 -0700
@@ -182,7 +182,6 @@
 
 static const int version = 1;
 
-#ifdef IS_PY3K
 static struct PyModuleDef mpatch_module = {
     PyModuleDef_HEAD_INIT, "mpatch", mpatch_doc, -1, methods,
 };
@@ -203,13 +202,3 @@
 
 	return m;
 }
-#else
-PyMODINIT_FUNC initmpatch(void)
-{
-	PyObject *m;
-	m = Py_InitModule3("mpatch", methods, mpatch_doc);
-	mpatch_Error =
-	    PyErr_NewException("mercurial.cext.mpatch.mpatchError", NULL, NULL);
-	PyModule_AddIntConstant(m, "version", version);
-}
-#endif