[pypy-commit] pypy kill-someobject: make translator/transform use the new API

alex_gaynor noreply at buildbot.pypy.org
Sun Oct 7 13:02:30 CEST 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: kill-someobject
Changeset: r57808:52ba24c94555
Date: 2012-10-07 04:02 -0700
http://bitbucket.org/pypy/pypy/changeset/52ba24c94555/

Log:	make translator/transform use the new API

diff --git a/pypy/translator/transform.py b/pypy/translator/transform.py
--- a/pypy/translator/transform.py
+++ b/pypy/translator/transform.py
@@ -194,8 +194,7 @@
     self.links_followed[errlink] = True
     # fix the annotation of the exceptblock.inputargs
     etype, evalue = graph.exceptblock.inputargs
-    s_type = annmodel.SomeObject()
-    s_type.knowntype = type
+    s_type = annmodel.SomeType()
     s_type.is_type_of = [evalue]
     s_value = annmodel.SomeInstance(self.bookkeeper.getuniqueclassdef(Exception))
     self.setbinding(etype, s_type)


More information about the pypy-commit mailing list