Commit 9bd4aad2 authored by Benjamin Peterson's avatar Benjamin Peterson

make DirEntryType and ScandirIteratorType static (closes #23918)

parent 5efcb1f2
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment