From: Victor Stinner Date: Wed, 20 Sep 2017 13:54:13 +0000 (-0700) Subject: bpo-30486: Make cell_set_contents() symbol private (#3668) X-Git-Tag: v3.7.0a2~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ad05c32cc41d4c21bfd78b9ffead519ead475a2;p=thirdparty%2FPython%2Fcpython.git bpo-30486: Make cell_set_contents() symbol private (#3668) Don't export the cell_set_contents() symbol in the C API. --- diff --git a/Objects/cellobject.c b/Objects/cellobject.c index 8f16f07d7b30..af19229c4b6a 100644 --- a/Objects/cellobject.c +++ b/Objects/cellobject.c @@ -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);