diff Python/ast.c @ 45905:2a01075cd902 legacy-trunk

Issue #2400: Allow relative imports to "import *".
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 19 Mar 2008 04:39:13 +0000
parents ff3e9aeaa692
children 84bb7701efba
line wrap: on
line diff
--- a/Python/ast.c	Wed Mar 19 03:56:59 2008 +0000
+++ b/Python/ast.c	Wed Mar 19 04:39:13 2008 +0000
@@ -2413,10 +2413,6 @@
             /* 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) */