Issue #2400: Allow relative imports to "import *".

This commit is contained in:
Martin v. Löwis 2008-03-19 04:39:13 +00:00
parent de48d8406f
commit a4d77898db
4 changed files with 16 additions and 5 deletions

View file

@ -2413,10 +2413,6 @@ ast_for_import_stmt(struct compiling *c, const node *n)
/* from ... import * */
n = CHILD(n, idx);
n_children = 1;
if (ndots) {
ast_error(n, "'import *' not allowed with 'from .'");
return NULL;
}
break;
case LPAR:
/* from ... import (x, y, z) */