[pypy-svn] r49587 - pypy/dist/pypy/objspace/std

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Dec 9 22:27:15 CET 2007


Author: cfbolz
Date: Sun Dec  9 22:27:14 2007
New Revision: 49587

Modified:
   pypy/dist/pypy/objspace/std/ropeobject.py
Log:
kill some unnecessary code


Modified: pypy/dist/pypy/objspace/std/ropeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/ropeobject.py	(original)
+++ pypy/dist/pypy/objspace/std/ropeobject.py	Sun Dec  9 22:27:14 2007
@@ -286,11 +286,8 @@
             assert isinstance(w_s, W_RopeObject)
             node = w_s._node
             l.append(node)
-        selfnode = w_self._node
-        length = selfnode.length()
-        listlen_minus_one = len(list_w) - 1
         try:
-            return W_RopeObject(rope.join(selfnode, l))
+            return W_RopeObject(rope.join(self, l))
         except OverflowError:
             raise OperationError(space.w_OverflowError,
                                  space.wrap("string too long"))



More information about the Pypy-commit mailing list