[pypy-svn] pypy default: Fix for rope unicode objects.

alex_gaynor commits-noreply at bitbucket.org
Thu Feb 3 21:39:38 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r41586:7b4c8677e64b
Date: 2011-02-03 15:36 -0500
http://bitbucket.org/pypy/pypy/changeset/7b4c8677e64b/

Log:	Fix for rope unicode objects.

diff --git a/pypy/objspace/std/ropeunicodeobject.py b/pypy/objspace/std/ropeunicodeobject.py
--- a/pypy/objspace/std/ropeunicodeobject.py
+++ b/pypy/objspace/std/ropeunicodeobject.py
@@ -482,6 +482,8 @@
 def _convert_idx_params(space, w_self, w_start, w_end):
     self = w_self._node
     length = w_self._node.length()
+    if space.is_w(w_end, space.w_None):
+        w_end = space.len(w_self)
     start = slicetype.adapt_bound(space, length, w_start)
     end = slicetype.adapt_bound(space, length, w_end)
 


More information about the Pypy-commit mailing list