From: Neil Schemenauer Date: Sun, 23 Oct 2005 03:38:19 +0000 (+0000) Subject: Add an assert. X-Git-Tag: v2.5a0~1247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=147b75931df421b9531cadadd3e182bae542c137;p=thirdparty%2FPython%2Fcpython.git Add an assert. --- diff --git a/Python/ast.c b/Python/ast.c index fbce7d71367f..0506b47a3644 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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;