[pypy-svn] pypy default: Fix for the case where this assert fails.

arigo commits-noreply at bitbucket.org
Thu Dec 30 21:40:54 CET 2010


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r40295:0ef92582a159
Date: 2010-12-29 11:49 +0100
http://bitbucket.org/pypy/pypy/changeset/0ef92582a159/

Log:	Fix for the case where this assert fails.

diff --git a/pypy/jit/metainterp/greenfield.py b/pypy/jit/metainterp/greenfield.py
--- a/pypy/jit/metainterp/greenfield.py
+++ b/pypy/jit/metainterp/greenfield.py
@@ -15,7 +15,7 @@
                 seen.add(objname)
         assert len(seen) == 1, (
             "Current limitation: you can only give one instance with green "
-            "fields.  Found %r" % seen.keys())
+            "fields.  Found %r" % list(seen))
         self.red_index = jd.jitdriver.reds.index(objname)
         #
         # a list of (GTYPE, fieldname)


More information about the Pypy-commit mailing list