SF.net SVN: jython:[7281] trunk/jython/src/org/python/core/Py.java
[email protected] Fri, 01 Apr 2011 18:35:37 +0000
| Newsgroups | gmane.comp.lang.jython.cvs |
|---|---|
| Message-ID | <[email protected]> |
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.
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf