]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-30486: Make cell_set_contents() symbol private (#3668)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 20 Sep 2017 13:54:13 +0000 (06:54 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Sep 2017 13:54:13 +0000 (06:54 -0700)
Don't export the cell_set_contents() symbol in the C API.

Objects/cellobject.c

index 8f16f07d7b30299aed7faa8c19c90b74a0c5d43f..af19229c4b6a7a415eb9a99066ba6d6110b4c406 100644 (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);