[pypy-svn] pypy bytearray: (lac, mfoord) remove unused annotation checker

mfoord commits-noreply at bitbucket.org
Thu Jan 20 13:44:46 CET 2011


Author: Michael Foord <michael at voidspace.org.uk>
Branch: bytearray
Changeset: r41013:61da68e67aad
Date: 2011-01-20 13:44 +0100
http://bitbucket.org/pypy/pypy/changeset/61da68e67aad/

Log:	(lac, mfoord) remove unused annotation checker

diff --git a/pypy/objspace/std/bytearrayobject.py b/pypy/objspace/std/bytearrayobject.py
--- a/pypy/objspace/std/bytearrayobject.py
+++ b/pypy/objspace/std/bytearrayobject.py
@@ -27,17 +27,11 @@
 from pypy.tool.sourcetools import func_with_new_name
 
 
-def bytearray_checker(s_arg, bookkeeper):
-    from pypy.annotation.model import SomeList, SomeChar, SomeImpossibleValue
-    assert isinstance(s_arg, SomeList)
-    assert isinstance(s_arg.listdef.listitem.s_value, (SomeChar, SomeImpossibleValue))
-
 class W_BytearrayObject(W_Object):
     from pypy.objspace.std.bytearraytype import bytearray_typedef as typedef
 
     def __init__(w_self, data):
         w_self.data = data
-        check_annotation(w_self.data, bytearray_checker)
 
     def __repr__(w_self):
         """ representation for debugging purposes """


More information about the Pypy-commit mailing list