summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-06-24 21:14:44 (GMT)
committerBrett Cannon <brett@python.org>2016-06-24 21:14:44 (GMT)
commita32c4d05312858f2468ad9d7ce53c52c4bcae2b3 (patch)
treedadc5e1997b1e3c185434397ab0a31288ecb6c32 /Modules/posixmodule.c
parent620d9c7200b54836c708d82e3b09c04152e836fc (diff)
downloadcpython-a32c4d05312858f2468ad9d7ce53c52c4bcae2b3.zip
cpython-a32c4d05312858f2468ad9d7ce53c52c4bcae2b3.tar.gz
cpython-a32c4d05312858f2468ad9d7ce53c52c4bcae2b3.tar.bz2
Issue #27038: Expose DirEntry as os.DirEntry.
Thanks to Jelle Zijlstra for the code portion of the patch.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index df802cb..4dc7c49 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -13320,6 +13320,7 @@ INITFUNC(void)
Py_DECREF(unicode);
}
PyModule_AddObject(m, "_have_functions", list);
+ PyModule_AddObject(m, "DirEntry", (PyObject *)&DirEntryType);
initialized = 1;