[pypy-svn] r63471 - pypy/trunk/pypy/objspace/std
pedronis at codespeak.net
pedronis at codespeak.net
Wed Apr 1 00:40:31 CEST 2009
Author: pedronis
Date: Wed Apr 1 00:40:27 2009
New Revision: 63471
Modified:
pypy/trunk/pypy/objspace/std/ropeobject.py
Log:
trying to address the rope test failures
Modified: pypy/trunk/pypy/objspace/std/ropeobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/ropeobject.py (original)
+++ pypy/trunk/pypy/objspace/std/ropeobject.py Wed Apr 1 00:40:27 2009
@@ -610,7 +610,10 @@
_tabindent(last, tabsize)))
last = splitted[i]
expanded.append(last)
- return W_RopeObject(rope.rebalance(expanded))
+ try:
+ return W_RopeObject(rope.rebalance(expanded))
+ except OverflowError:
+ raise OperationError(space.w_OverflowError, space.wrap('new string is too long'))
def str_splitlines__Rope_ANY(space, w_self, w_keepends):
More information about the Pypy-commit
mailing list