summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-03-16 02:52:24 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2013-03-16 02:52:24 -0400
commitddf47eb8c61ed4d3ee3ec680336b016b627e53dd (patch)
tree7c238ff29a60d4957e6e26d336a6163f061d057d /Python/bltinmodule.c
parentf612c8fa7c1d6e244200a3eff0a82abcca4cca82 (diff)
parentcdfac6f16bec10dcb4885fd7f74ae80884d0cdf1 (diff)
downloadcpython-ddf47eb8c61ed4d3ee3ec680336b016b627e53dd.tar.gz
Merge with 3.3
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index bf90aba3a2..f794d410c9 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -659,7 +659,7 @@ builtin_compile(PyObject *self, PyObject *args, PyObject *kwds)
goto finally;
}
- str = source_as_string(cmd, "compile", "string, bytes, AST or code", &cf);
+ str = source_as_string(cmd, "compile", "string, bytes or AST", &cf);
if (str == NULL)
goto error;
@@ -2407,6 +2407,12 @@ PyObject *
_PyBuiltin_Init(void)
{
PyObject *mod, *dict, *debug;
+
+ if (PyType_Ready(&PyFilter_Type) < 0 ||
+ PyType_Ready(&PyMap_Type) < 0 ||
+ PyType_Ready(&PyZip_Type) < 0)
+ return NULL;
+
mod = PyModule_Create(&builtinsmodule);
if (mod == NULL)
return NULL;