mirror of
https://github.com/python/cpython.git
synced 2025-07-27 21:24:32 +00:00
Issue #2400: Allow relative imports to "import *".
This commit is contained in:
parent
de48d8406f
commit
a4d77898db
4 changed files with 16 additions and 5 deletions
|
@ -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) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue