[pypy-svn] r59436 - pypy/trunk/pypy/objspace/std
fijal at codespeak.net
fijal at codespeak.net
Mon Oct 27 10:20:25 CET 2008
Author: fijal
Date: Mon Oct 27 10:20:23 2008
New Revision: 59436
Modified:
pypy/trunk/pypy/objspace/std/strsliceobject.py
Log:
fix translation, this code is never executed in tests
Modified: pypy/trunk/pypy/objspace/std/strsliceobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/strsliceobject.py (original)
+++ pypy/trunk/pypy/objspace/std/strsliceobject.py Mon Oct 27 10:20:23 2008
@@ -82,9 +82,10 @@
if pos == -1:
return space.newtuple([w_self, space.wrap(''), space.wrap('')])
else:
- return space.newtuple([sliced(space, self, w_self.start, pos),
+ return space.newtuple([sliced(space, self, w_self.start, pos, w_self),
w_sub,
- sliced(space, self, pos+len(sub), w_self.stop)])
+ sliced(space, self, pos+len(sub), w_self.stop,
+ w_self)])
def str_rpartition__StringSlice_String(space, w_self, w_sub):
self = w_self.str
@@ -96,9 +97,10 @@
if pos == -1:
return space.newtuple([space.wrap(''), space.wrap(''), w_self])
else:
- return space.newtuple([sliced(space, self, w_self.start, pos),
+ return space.newtuple([sliced(space, self, w_self.start, pos, w_self),
w_sub,
- sliced(space, self, pos+len(sub), w_self.stop)])
+ sliced(space, self, pos+len(sub), w_self.stop,
+ w_self)])
def str_count__StringSlice_String_ANY_ANY(space, w_self, w_arg, w_start, w_end):
More information about the Pypy-commit
mailing list