comparison Python/Python-ast.c @ 46215:a7fb4d87cbde

Merged revisions 62013-62014 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r62013 | amaury.forgeotdarc | 2008-03-28 21:17:51 +0100 (Fr, 28 Mär 2008) | 2 lines Silence a compilation warning ........ r62014 | georg.brandl | 2008-03-28 21:22:56 +0100 (Fr, 28 Mär 2008) | 2 lines Silence compiler warning at the source. ........
author Martin v. Löwis <martin@v.loewis.de>
date Sun, 30 Mar 2008 20:29:36 +0000
parents ea75b12fe8e7
children b2d93a960b98
comparison
equal deleted inserted replaced
46214:4c7bb409dad6 46215:a7fb4d87cbde
6417 6417
6418 mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena) 6418 mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena)
6419 { 6419 {
6420 mod_ty res; 6420 mod_ty res;
6421 init_types(); 6421 init_types();
6422 if (!PyObject_IsInstance(ast, mod_type)) { 6422 if (!PyObject_IsInstance(ast, (PyObject*)mod_type)) {
6423 PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive " 6423 PyErr_SetString(PyExc_TypeError, "expected either Module, Interactive "
6424 "or Expression node"); 6424 "or Expression node");
6425 return NULL; 6425 return NULL;
6426 } 6426 }
6427 if (obj2ast_mod(ast, &res, arena) != 0) 6427 if (obj2ast_mod(ast, &res, arena) != 0)