[Python-checkins] r55087 - python/trunk/Python/ast.c
neal.norwitz
python-checkins at python.org
Thu May 3 08:47:19 CEST 2007
Author: neal.norwitz
Date: Thu May 3 08:47:18 2007
New Revision: 55087
Modified:
python/trunk/Python/ast.c
Log:
Handle a couple of uncaught errors. This should be backported
Modified: python/trunk/Python/ast.c
==============================================================================
--- python/trunk/Python/ast.c (original)
+++ python/trunk/Python/ast.c Thu May 3 08:47:18 2007
@@ -244,6 +244,8 @@
goto error;
asdl_seq_SET(stmts, 0, Pass(n->n_lineno, n->n_col_offset,
arena));
+ if (!asdl_seq_GET(stmts, 0))
+ goto error;
return Interactive(stmts, arena);
}
else {
@@ -675,6 +677,8 @@
if (NCH(ch) != 1) {
/* We have complex arguments, setup for unpacking. */
asdl_seq_SET(args, k++, compiler_complex_args(c, ch));
+ if (!asdl_seq_GET(args, k-1))
+ goto error;
} else {
/* def foo((x)): setup for checking NAME below. */
/* Loop because there can be many parens and tuple
More information about the Python-checkins
mailing list