]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
closes bpo-38648: Remove double tp_free slot in Python-ast.c. (GH-17002)
authorMax Bernstein <tekknolagi@users.noreply.github.com>
Thu, 31 Oct 2019 01:08:06 +0000 (18:08 -0700)
committerBenjamin Peterson <benjamin@python.org>
Thu, 31 Oct 2019 01:08:06 +0000 (18:08 -0700)
This looks like a typo due to copy-paste.

Parser/asdl_c.py
Python/Python-ast.c

index 3a821cc9265c9d44e4ad3013f55a68231fec6a74..52495e9b451c1d1ac7bb800ef786437acb7a6300 100755 (executable)
@@ -751,7 +751,6 @@ static PyType_Slot AST_type_slots[] = {
     {Py_tp_init, ast_type_init},
     {Py_tp_alloc, PyType_GenericAlloc},
     {Py_tp_new, PyType_GenericNew},
-    {Py_tp_free, PyType_GenericNew},
     {Py_tp_free, PyObject_GC_Del},
     {0, 0},
 };
index e2c703d815552ee1a3f2dc09fb2d3d0a2a7284a4..d5465d795cfa4d783ff2b1faf0d75f17dcc5c383 100644 (file)
@@ -1244,7 +1244,6 @@ static PyType_Slot AST_type_slots[] = {
     {Py_tp_init, ast_type_init},
     {Py_tp_alloc, PyType_GenericAlloc},
     {Py_tp_new, PyType_GenericNew},
-    {Py_tp_free, PyType_GenericNew},
     {Py_tp_free, PyObject_GC_Del},
     {0, 0},
 };