Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5646de4

Browse files
committed
make DirEntryType and ScandirIteratorType static (closes #23918)
1 parent f737703 commit 5646de4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/posixmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11692,7 +11692,7 @@ static PyMethodDef DirEntry_methods[] = {
1169211692
{NULL}
1169311693
};
1169411694

11695-
PyTypeObject DirEntryType = {
11695+
static PyTypeObject DirEntryType = {
1169611696
PyVarObject_HEAD_INIT(NULL, 0)
1169711697
MODNAME ".DirEntry", /* tp_name */
1169811698
sizeof(DirEntry), /* tp_basicsize */
@@ -12024,7 +12024,7 @@ ScandirIterator_dealloc(ScandirIterator *iterator)
1202412024
Py_TYPE(iterator)->tp_free((PyObject *)iterator);
1202512025
}
1202612026

12027-
PyTypeObject ScandirIteratorType = {
12027+
static PyTypeObject ScandirIteratorType = {
1202812028
PyVarObject_HEAD_INIT(NULL, 0)
1202912029
MODNAME ".ScandirIterator", /* tp_name */
1203012030
sizeof(ScandirIterator), /* tp_basicsize */

0 commit comments

Comments
 (0)