Add an assert.
This commit is contained in:
parent
ebc3457937
commit
147b75931d
|
@ -2178,6 +2178,7 @@ ast_for_import_stmt(struct compiling *c, const node *n)
|
||||||
n = CHILD(n, 0);
|
n = CHILD(n, 0);
|
||||||
if (STR(CHILD(n, 0))[0] == 'i') { /* import */
|
if (STR(CHILD(n, 0))[0] == 'i') { /* import */
|
||||||
n = CHILD(n, 1);
|
n = CHILD(n, 1);
|
||||||
|
REQ(n, dotted_as_names);
|
||||||
aliases = asdl_seq_new((NCH(n) + 1) / 2);
|
aliases = asdl_seq_new((NCH(n) + 1) / 2);
|
||||||
if (!aliases)
|
if (!aliases)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue