]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Remove legacy Python support in speedups.c 2777/head
authorMichael V. DePalatis <mike@depalatis.net>
Thu, 21 Nov 2019 19:31:55 +0000 (12:31 -0700)
committerMichael V. DePalatis <mike@depalatis.net>
Thu, 21 Nov 2019 19:31:55 +0000 (12:31 -0700)
tornado/speedups.c

index b714268ab4383a4e2e16f9a4cf25cc760ed67d15..525d66034ca4b63679d5827980daa8bba8c7e1a1 100644 (file)
@@ -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