Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 147b759

Browse files
committed
Add an assert.
1 parent ebc3457 commit 147b759

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/ast.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,6 +2178,7 @@ ast_for_import_stmt(struct compiling *c, const node *n)
21782178
n = CHILD(n, 0);
21792179
if (STR(CHILD(n, 0))[0] == 'i') { /* import */
21802180
n = CHILD(n, 1);
2181+
REQ(n, dotted_as_names);
21812182
aliases = asdl_seq_new((NCH(n) + 1) / 2);
21822183
if (!aliases)
21832184
return NULL;

0 commit comments

Comments
 (0)