diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2005-10-23 03:38:19 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2005-10-23 03:38:19 (GMT) |
commit | 147b75931df421b9531cadadd3e182bae542c137 (patch) | |
tree | 8c79cf07a23cfe7a06717b6778bc00bb58140b45 /Python | |
parent | ebc3457937330aaab2b64424b82996b8128e0ba1 (diff) | |
download | cpython-147b75931df421b9531cadadd3e182bae542c137.zip cpython-147b75931df421b9531cadadd3e182bae542c137.tar.gz cpython-147b75931df421b9531cadadd3e182bae542c137.tar.bz2 |
Add an assert.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c index fbce7d7..0506b47 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; |