From: <pj...@us...> - 2008-10-21 21:25:28
|
Revision: 5500 http://jython.svn.sourceforge.net/jython/?rev=5500&view=rev Author: pjenvey Date: 2008-10-21 21:25:21 +0000 (Tue, 21 Oct 2008) Log Message: ----------- fix passing a null node to the ParseException for bare except clauses that aren't the last clause, and match the error message to CPython 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-21 20:02:03 UTC (rev 5499) +++ trunk/jython/src/org/python/compiler/CodeCompiler.java 2008-10-21 21:25:21 UTC (rev 5500) @@ -1137,7 +1137,7 @@ } else { if (i != node.handlers.length-1) { throw new ParseException( - "bare except must be last except clause", handler.type); + "default 'except:' must be last", handler); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |