From: <fwi...@us...> - 2008-08-06 19:35:46
|
Revision: 5098 http://jython.svn.sourceforge.net/jython/?rev=5098&view=rev Author: fwierzbicki Date: 2008-08-06 19:35:41 +0000 (Wed, 06 Aug 2008) Log Message: ----------- Line and column position for from __future__ import braces Also fixed from __future__ import GIL Good thing there are unit tests for this :) Modified Paths: -------------- branches/asm/src/org/python/compiler/Future.java Modified: branches/asm/src/org/python/compiler/Future.java =================================================================== --- branches/asm/src/org/python/compiler/Future.java 2008-08-06 19:05:52 UTC (rev 5097) +++ branches/asm/src/org/python/compiler/Future.java 2008-08-06 19:35:41 UTC (rev 5098) @@ -44,10 +44,10 @@ continue; } if (feature.equals("braces")) { - throw new ParseException("not a chance"); + throw new ParseException("not a chance", cand); } if (feature.equals("GIL") || feature.equals("global_interpreter_lock")) { - throw new ParseException("Never going to happen!"); + throw new ParseException("Never going to happen!", cand); } throw new ParseException("future feature "+feature+ " is not defined",cand); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |