Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r52106:85f2c70631d9
Date: 2012-02-04 22:09 +0100
http://bitbucket.org/pypy/pypy/changeset/85f2c70631d9/

Log:    Fish the list item directly, read_item() cannot be called during
        rtyping

diff --git a/pypy/annotation/model.py b/pypy/annotation/model.py
--- a/pypy/annotation/model.py
+++ b/pypy/annotation/model.py
@@ -742,7 +742,7 @@
 
 def remove_no_nul(s_obj):
     if isinstance(s_obj, SomeList):
-        s_item = s_obj.listdef.read_item()
+        s_item = s_obj.listdef.listitem.s_value
         new_s_item = remove_no_nul(s_item)
         from pypy.annotation.listdef import ListDef
         if s_item is not new_s_item:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to