[Python-checkins] cpython: make DirEntryType and ScandirIteratorType static (closes #23918)
benjamin.peterson
python-checkins at python.org
Sun Apr 12 23:56:38 CEST 2015
https://hg.python.org/cpython/rev/bf5a899a5d7c
changeset: 95558:bf5a899a5d7c
user: Benjamin Peterson <benjamin at python.org>
date: Sun Apr 12 17:56:34 2015 -0400
summary:
make DirEntryType and ScandirIteratorType static (closes #23918)
files:
Modules/posixmodule.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -11692,7 +11692,7 @@
{NULL}
};
-PyTypeObject DirEntryType = {
+static PyTypeObject DirEntryType = {
PyVarObject_HEAD_INIT(NULL, 0)
MODNAME ".DirEntry", /* tp_name */
sizeof(DirEntry), /* tp_basicsize */
@@ -12024,7 +12024,7 @@
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 */
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list