Add an assert.

This commit is contained in:
Neil Schemenauer 2005-10-23 03:38:19 +00:00
parent ebc3457937
commit 147b75931d
1 changed files with 1 additions and 0 deletions

View File

@ -2178,6 +2178,7 @@ ast_for_import_stmt(struct compiling *c, const node *n)
n = CHILD(n, 0);
if (STR(CHILD(n, 0))[0] == 'i') { /* import */
n = CHILD(n, 1);
REQ(n, dotted_as_names);
aliases = asdl_seq_new((NCH(n) + 1) / 2);
if (!aliases)
return NULL;