summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:24:06 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:24:06 +0200
commitb269ef065938e598ab8bd99f73306aa7883e4257 (patch)
tree1bf6aeb4d1a83929b68c8d06b01bf8a434e8de03 /Python/bltinmodule.c
parent82ad4d2a8d5b7b3147af9cf6406fca37d493e6ee (diff)
parent7dc68556d28f052d990549246963b63b4021ba4c (diff)
downloadcpython-b269ef065938e598ab8bd99f73306aa7883e4257.tar.gz
Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms.
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 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;