diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-03-19 04:39:13 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-03-19 04:39:13 (GMT) |
commit | a4d77898db3856cd3d8c9411d024bea88be25b66 (patch) | |
tree | da46cbbc8815fe69cadc7a44146970a56439b05c /Python/ast.c | |
parent | de48d8406feb997fefdbad7fbdbf43f918805f2e (diff) | |
download | cpython-a4d77898db3856cd3d8c9411d024bea88be25b66.zip cpython-a4d77898db3856cd3d8c9411d024bea88be25b66.tar.gz cpython-a4d77898db3856cd3d8c9411d024bea88be25b66.tar.bz2 |
Issue #2400: Allow relative imports to "import *".
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/ast.c b/Python/ast.c index e14ff3a..8a317b8 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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) */ |