[pypy-commit] pypy s390x-backend: merged default

plan_rich noreply at buildbot.pypy.org
Mon Nov 23 02:27:33 EST 2015


Author: Richard Plangger <planrichi at gmail.com>
Branch: s390x-backend
Changeset: r80847:4dcc42d4c820
Date: 2015-11-23 08:28 +0100
http://bitbucket.org/pypy/pypy/changeset/4dcc42d4c820/

Log:	merged default

diff --git a/rpython/annotator/bookkeeper.py b/rpython/annotator/bookkeeper.py
--- a/rpython/annotator/bookkeeper.py
+++ b/rpython/annotator/bookkeeper.py
@@ -168,7 +168,9 @@
         return desc.getuniqueclassdef()
 
     def new_exception(self, exc_classes):
-        clsdefs = {self.getuniqueclassdef(cls) for cls in exc_classes}
+        clsdefs = set()
+        for cls in exc_classes:
+            clsdefs.add(self.getuniqueclassdef(cls))
         return SomeException(clsdefs)
 
     def getlistdef(self, **flags_if_new):


More information about the pypy-commit mailing list