summaryrefslogtreecommitdiff
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-06-24 14:14:44 -0700
committerBrett Cannon <brett@python.org>2016-06-24 14:14:44 -0700
commit8ecaa879ea3137279269eb78ead7ad57c1d269e0 (patch)
tree8ca8aaa39e50316176438d58a52a143fc3d1a325 /Modules/posixmodule.c
parent426b606f56f3aadf4b47e99311283a65751bee21 (diff)
downloadcpython-8ecaa879ea3137279269eb78ead7ad57c1d269e0.tar.gz
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 df802cbc09..4dc7c49465 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;