From: <pj...@us...> - 2008-12-06 06:55:52
|
Revision: 5713 http://jython.svn.sourceforge.net/jython/?rev=5713&view=rev Author: pjenvey Date: 2008-12-06 06:55:48 +0000 (Sat, 06 Dec 2008) Log Message: ----------- correct mismatch between partition/rpartition and their exposed versions Modified Paths: -------------- trunk/jython/src/org/python/core/PyUnicode.java Modified: trunk/jython/src/org/python/core/PyUnicode.java =================================================================== --- trunk/jython/src/org/python/core/PyUnicode.java 2008-12-06 06:52:28 UTC (rev 5712) +++ trunk/jython/src/org/python/core/PyUnicode.java 2008-12-06 06:55:48 UTC (rev 5713) @@ -633,6 +633,10 @@ new ReversedIterator(newSubsequenceIterator())))); } + public PyTuple partition(PyObject sep) { + return unicode_partition(sep); + } + @ExposedMethod final PyTuple unicode_partition(PyObject sep) { return unicodePartition(sep); @@ -869,6 +873,10 @@ } } + public PyTuple rpartition(PyObject sep) { + return unicode_rpartition(sep); + } + @ExposedMethod final PyTuple unicode_rpartition(PyObject sep) { return unicodeRpartition(sep); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |