bpo-30486: Make cell_set_contents() symbol private (#3668)

Don't export the cell_set_contents() symbol in the C API.
This commit is contained in:
Victor Stinner 2017-09-20 06:54:13 -07:00 committed by GitHub
parent a6c0c06956
commit 0ad05c32cc

View file

@ -142,7 +142,7 @@ cell_get_contents(PyCellObject *op, void *closure)
return op->ob_ref;
}
int
static int
cell_set_contents(PyCellObject *op, PyObject *obj)
{
Py_XINCREF(obj);