[pypy-commit] pypy kill-single-impl-multimethods: Translation fix.

alex_gaynor noreply at buildbot.pypy.org
Sat Aug 6 04:20:04 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: kill-single-impl-multimethods
Changeset: r46301:cee602b3d30a
Date: 2011-08-05 19:21 -0700
http://bitbucket.org/pypy/pypy/changeset/cee602b3d30a/

Log:	Translation fix.

diff --git a/pypy/objspace/std/bytearraytype.py b/pypy/objspace/std/bytearraytype.py
--- a/pypy/objspace/std/bytearraytype.py
+++ b/pypy/objspace/std/bytearraytype.py
@@ -106,6 +106,7 @@
 
     def descr_extend(self, space, w_other):
         if space.isinstance_w(w_other, space.w_bytearray):
+            assert isinstance(w_other, W_BytearrayObject)
             self.data += w_other.data
         else:
             self.data += makebytearraydata_w(space, w_other)


More information about the pypy-commit mailing list