[pypy-svn] r40047 - pypy/branch/rope-branch2/pypy/objspace/std

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Mar 7 21:05:06 CET 2007


Author: cfbolz
Date: Wed Mar  7 21:05:04 2007
New Revision: 40047

Modified:
   pypy/branch/rope-branch2/pypy/objspace/std/ropeobject.py
Log:
adapt to the new interface of adapt_bound


Modified: pypy/branch/rope-branch2/pypy/objspace/std/ropeobject.py
==============================================================================
--- pypy/branch/rope-branch2/pypy/objspace/std/ropeobject.py	(original)
+++ pypy/branch/rope-branch2/pypy/objspace/std/ropeobject.py	Wed Mar  7 21:05:04 2007
@@ -602,10 +602,8 @@
     length = selfnode.length()
     argnode   = w_arg._node
 
-    w_start = slicetype.adapt_bound(space, w_start, space.wrap(length))
-    w_end = slicetype.adapt_bound(space, w_end, space.wrap(length))
-    u_start = space.int_w(w_start)
-    u_end = space.int_w(w_end)
+    u_start = slicetype.adapt_bound(space, length, w_start)
+    u_end = slicetype.adapt_bound(space, length, w_end)
     assert u_start >= 0
     assert u_end >= 0
     iter = rope.FindIterator(selfnode, argnode, u_start, u_end)



More information about the Pypy-commit mailing list