From: Benjamin Peterson Date: Sun, 12 Apr 2015 21:56:34 +0000 (-0400) Subject: make DirEntryType and ScandirIteratorType static (closes #23918) X-Git-Tag: v3.5.0a4~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5646de47e18b8a357dff4e01c2f949c6f288e035;p=thirdparty%2FPython%2Fcpython.git make DirEntryType and ScandirIteratorType static (closes #23918) --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 82eae5eec4d7..23c006844e17 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -11692,7 +11692,7 @@ static PyMethodDef DirEntry_methods[] = { {NULL} }; -PyTypeObject DirEntryType = { +static PyTypeObject DirEntryType = { PyVarObject_HEAD_INIT(NULL, 0) MODNAME ".DirEntry", /* tp_name */ sizeof(DirEntry), /* tp_basicsize */ @@ -12024,7 +12024,7 @@ ScandirIterator_dealloc(ScandirIterator *iterator) Py_TYPE(iterator)->tp_free((PyObject *)iterator); } -PyTypeObject ScandirIteratorType = { +static PyTypeObject ScandirIteratorType = { PyVarObject_HEAD_INIT(NULL, 0) MODNAME ".ScandirIterator", /* tp_name */ sizeof(ScandirIterator), /* tp_basicsize */