diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-12-14 20:20:07 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-12-14 20:20:07 +0200 |
commit | a8a775c5161d12a9d21569743f13a30ab3946d1c (patch) | |
tree | 08480d953d58e6a09caa9c5ad8e1b281c577ac59 /Python/bltinmodule.c | |
parent | 5053cae50d42238871c49371a328d7686f7eb13d (diff) | |
parent | 13321a29888234527e6ac1b798856a3ac47fcbd2 (diff) | |
download | cpython-a8a775c5161d12a9d21569743f13a30ab3946d1c.tar.gz |
#16683: merge with 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 0e6e6ff9ff..6f52a9a8cf 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -657,7 +657,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; @@ -2405,6 +2405,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; |