[Python-checkins] python/dist/src/Python compile.c,2.355,2.356

nascheme@users.sourceforge.net nascheme at users.sourceforge.net
Sun Oct 23 05:45:46 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22746/Python

Modified Files:
	compile.c 
Log Message:
Don't stop generating code for import statements after the first "import as"
part.  Fixes one bug from #1333982.


Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.355
retrieving revision 2.356
diff -u -d -r2.355 -r2.356
--- compile.c	21 Oct 2005 18:09:19 -0000	2.355
+++ compile.c	23 Oct 2005 03:45:42 -0000	2.356
@@ -2359,8 +2359,9 @@
 		ADDOP_NAME(c, IMPORT_NAME, alias->name, names);
 
 		if (alias->asname) {
-			return compiler_import_as(c, 
-						  alias->name, alias->asname);
+			r = compiler_import_as(c, alias->name, alias->asname);
+                        if (!r)
+                            return r;
                 }
                 else {
 			identifier tmp = alias->name;



More information about the Python-checkins mailing list