Commits

Alex Gaynor committed 52ba24c

make translator/transform use the new API

Comments (0)

Files changed (1)

pypy/translator/transform.py

     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)