From: Michael V. DePalatis Date: Thu, 21 Nov 2019 19:31:55 +0000 (-0700) Subject: Remove legacy Python support in speedups.c X-Git-Tag: v6.1.0b1~44^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2777%2Fhead;p=thirdparty%2Ftornado.git Remove legacy Python support in speedups.c --- diff --git a/tornado/speedups.c b/tornado/speedups.c index b714268ab..525d66034 100644 --- a/tornado/speedups.c +++ b/tornado/speedups.c @@ -56,7 +56,6 @@ static PyMethodDef methods[] = { {NULL, NULL, 0, NULL} }; -#if PY_MAJOR_VERSION >= 3 static struct PyModuleDef speedupsmodule = { PyModuleDef_HEAD_INIT, "speedups", @@ -69,9 +68,3 @@ PyMODINIT_FUNC PyInit_speedups(void) { return PyModule_Create(&speedupsmodule); } -#else // Python 2.x -PyMODINIT_FUNC -initspeedups(void) { - Py_InitModule("tornado.speedups", methods); -} -#endif