Commit 147b7593 authored by Neil Schemenauer's avatar Neil Schemenauer

Add an assert.

parent ebc34579
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment