Author: Richard Plangger <[email protected]>
Branch: 
Changeset: r80846:856bc46f9525
Date: 2015-11-23 08:25 +0100
http://bitbucket.org/pypy/pypy/changeset/856bc46f9525/

Log:    yet another {k for k ...} set syntax converted to an explicit for
        loop

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):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to