From: <pj...@us...> - 2011-04-01 18:35:42
|
Revision: 7281 http://jython.svn.sourceforge.net/jython/?rev=7281&view=rev Author: pjenvey Date: 2011-04-01 18:35:36 +0000 (Fri, 01 Apr 2011) Log Message: ----------- minor refactor Modified Paths: -------------- trunk/jython/src/org/python/core/Py.java Modified: trunk/jython/src/org/python/core/Py.java =================================================================== --- trunk/jython/src/org/python/core/Py.java 2011-04-01 05:22:39 UTC (rev 7280) +++ trunk/jython/src/org/python/core/Py.java 2011-04-01 18:35:36 UTC (rev 7281) @@ -2053,10 +2053,7 @@ */ private static PyTuple abstractGetBases(PyObject cls) { PyObject bases = cls.__findattr__("__bases__"); - if (bases instanceof PyTuple) { - return (PyTuple) bases; - } - return null; + return bases instanceof PyTuple ? (PyTuple) bases : null; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |