From: <pj...@us...> - 2007-11-06 00:35:30
|
Revision: 3641 http://jython.svn.sourceforge.net/jython/?rev=3641&view=rev Author: pjenvey Date: 2007-11-05 16:35:29 -0800 (Mon, 05 Nov 2007) Log Message: ----------- adapt booleans to python booleans Modified Paths: -------------- trunk/jython/src/org/python/core/adapter/ClassicPyObjectAdapter.java Modified: trunk/jython/src/org/python/core/adapter/ClassicPyObjectAdapter.java =================================================================== --- trunk/jython/src/org/python/core/adapter/ClassicPyObjectAdapter.java 2007-11-05 23:57:41 UTC (rev 3640) +++ trunk/jython/src/org/python/core/adapter/ClassicPyObjectAdapter.java 2007-11-06 00:35:29 UTC (rev 3641) @@ -97,7 +97,7 @@ add(new ClassAdapter(Boolean.class) { public PyObject adapt(Object o) { - return ((Boolean) o).booleanValue() ? Py.One : Py.Zero; + return ((Boolean) o).booleanValue() ? Py.True : Py.False; } }); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |