diff options
author | Martin v. Loewis <martin@v.loewis.de> | 2013-03-24 22:12:19 +0100 |
---|---|---|
committer | Martin v. Loewis <martin@v.loewis.de> | 2013-03-24 22:12:19 +0100 |
commit | 650458ab36c29cfd3906f4940eabd01b8b523b5c (patch) | |
tree | 4463730700404c235bb38a2479a382a4d1c71653 /Python/bltinmodule.c | |
parent | 29a7032a9fa9327c158d9d09a8d7a8942c4f87d5 (diff) | |
parent | e298eef2c67880b4773a6678310b066406385824 (diff) | |
download | cpython-650458ab36c29cfd3906f4940eabd01b8b523b5c.tar.gz |
merge 3.3
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 8 |
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; |