From: <pj...@us...> - 2010-04-18 18:06:14
|
Revision: 7040 http://jython.svn.sourceforge.net/jython/?rev=7040&view=rev Author: pjenvey Date: 2010-04-18 18:06:07 +0000 (Sun, 18 Apr 2010) Log Message: ----------- use our more canonical windows check Modified Paths: -------------- trunk/jython/src/org/python/modules/errno.java Modified: trunk/jython/src/org/python/modules/errno.java =================================================================== --- trunk/jython/src/org/python/modules/errno.java 2010-04-18 17:56:20 UTC (rev 7039) +++ trunk/jython/src/org/python/modules/errno.java 2010-04-18 18:06:07 UTC (rev 7040) @@ -3,8 +3,8 @@ import com.kenai.constantine.Constant; import com.kenai.constantine.ConstantSet; -import com.kenai.constantine.Platform; import com.kenai.constantine.platform.Errno; +import org.jruby.ext.posix.util.Platform; import org.python.core.ClassDictInit; import org.python.core.Py; import org.python.core.PyDictionary; @@ -34,7 +34,7 @@ public static final PyObject errorcode = new PyDictionary(); public static void classDictInit(PyObject dict) { - if (Platform.OS.equals("windows")) { + if (Platform.IS_WINDOWS) { initWindows(dict); } else { initPosix(dict); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |