From: <th...@us...> - 2008-10-17 19:28:23
|
Revision: 5455 http://jython.svn.sourceforge.net/jython/?rev=5455&view=rev Author: thobes Date: 2008-10-17 19:28:20 +0000 (Fri, 17 Oct 2008) Log Message: ----------- Removed some erronious code in visitYield. Modified Paths: -------------- trunk/jython/src/org/python/compiler/CodeCompiler.java Modified: trunk/jython/src/org/python/compiler/CodeCompiler.java =================================================================== --- trunk/jython/src/org/python/compiler/CodeCompiler.java 2008-10-17 18:15:50 UTC (rev 5454) +++ trunk/jython/src/org/python/compiler/CodeCompiler.java 2008-10-17 19:28:20 UTC (rev 5455) @@ -555,18 +555,6 @@ throw new ParseException("'yield' outside function", node); } - if (yield_count == 0) { - loadFrame(); - code.invokevirtual("org/python/core/PyFrame", "getGeneratorInput", "()" + $obj); - code.dup(); - code.instanceof_("org/python/core/PyException"); - Label done = new Label(); - code.ifeq(done); - code.checkcast("java/lang/Throwable"); - code.athrow(); - code.label(done); - } - if (node.value != null) { visit(node.value); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |