[Python-checkins] r55083 - python/trunk/Python/ast.c
georg.brandl
python-checkins at python.org
Wed May 2 22:02:34 CEST 2007
Author: georg.brandl
Date: Wed May 2 22:02:29 2007
New Revision: 55083
Modified:
python/trunk/Python/ast.c
Log:
Actually raise an exception before calling ast_error_finish.
Triggers an assertion otherwise.
Modified: python/trunk/Python/ast.c
==============================================================================
--- python/trunk/Python/ast.c (original)
+++ python/trunk/Python/ast.c Wed May 2 22:02:29 2007
@@ -274,6 +274,8 @@
return Interactive(stmts, arena);
}
default:
+ PyErr_Format(PyExc_SystemError,
+ "invalid node %d for PyAST_FromNode", TYPE(n));
goto error;
}
error:
More information about the Python-checkins
mailing list