summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/res
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-09-20 17:40:22 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-09-20 17:40:22 (GMT)
commita755e68df647bd3dc27749998d19cc47649a8b4f (patch)
tree95f40587e6e5befe6a870474fc9a15cc0f3683b1 /Mac/Modules/res
parent6dd48686810f4806d98eaffa29e53dfabaca2e08 (diff)
downloadcpython-a755e68df647bd3dc27749998d19cc47649a8b4f.zip
cpython-a755e68df647bd3dc27749998d19cc47649a8b4f.tar.gz
cpython-a755e68df647bd3dc27749998d19cc47649a8b4f.tar.bz2
Export type objects to Python
Diffstat (limited to 'Mac/Modules/res')
-rw-r--r--Mac/Modules/res/Resmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Modules/res/Resmodule.c b/Mac/Modules/res/Resmodule.c
index e903158..f4ed648 100644
--- a/Mac/Modules/res/Resmodule.c
+++ b/Mac/Modules/res/Resmodule.c
@@ -1387,6 +1387,10 @@ void initRes()
if (Res_Error == NULL ||
PyDict_SetItemString(d, "Error", Res_Error) != 0)
Py_FatalError("can't initialize Res.Error");
+ Resource_Type.ob_type = &PyType_Type;
+ Py_INCREF(&Resource_Type);
+ if (PyDict_SetItemString(d, "ResourceType", (PyObject *)&Resource_Type) != 0)
+ Py_FatalError("can't initialize ResourceType");
}
/* ========================= End module Res ========================= */