From: <pj...@us...> - 2008-07-21 01:38:49
|
Revision: 4976 http://jython.svn.sourceforge.net/jython/?rev=4976&view=rev Author: pjenvey Date: 2008-07-21 01:38:17 +0000 (Mon, 21 Jul 2008) Log Message: ----------- small cleanup Modified Paths: -------------- trunk/jython/src/org/python/core/PySequence.java Modified: trunk/jython/src/org/python/core/PySequence.java =================================================================== --- trunk/jython/src/org/python/core/PySequence.java 2008-07-19 23:23:25 UTC (rev 4975) +++ trunk/jython/src/org/python/core/PySequence.java 2008-07-21 01:38:17 UTC (rev 4976) @@ -256,7 +256,11 @@ } } - public synchronized PyObject __finditem__(int index) { + public PyObject __finditem__(int index) { + return seq___finditem__(index); + } + + final synchronized PyObject seq___finditem__(int index) { index = fixindex(index); if(index == -1) { return null; @@ -271,7 +275,7 @@ final PyObject seq___finditem__(PyObject index) { if(index instanceof PyInteger || index instanceof PyLong) { - return __finditem__(index.asInt()); + return seq___finditem__(index.asInt()); } else if(index instanceof PySlice) { PySlice s = (PySlice)index; return __getslice__(s.start, s.stop, s.step); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |