Author: Raffael Tfirst <raffael.tfi...@gmail.com>
Branch: py3.5
Changeset: r85333:002348cdc66f
Date: 2016-06-22 19:22 +0200
http://bitbucket.org/pypy/pypy/changeset/002348cdc66f/

Log:    Handle setdisplay in ast

diff --git a/pypy/interpreter/astcompiler/astbuilder.py 
b/pypy/interpreter/astcompiler/astbuilder.py
--- a/pypy/interpreter/astcompiler/astbuilder.py
+++ b/pypy/interpreter/astcompiler/astbuilder.py
@@ -1357,6 +1357,15 @@
             values.append(dictelement[2])
             i += 1
         return ast.Dict(keys, values, node.get_lineno(), node.get_column())
+    
+    def handle_setdisplay(self, node):
+        elts = []
+        i = 0
+        while i < node.num_children():
+            expr = self.handle_expr(node.get_child(i))
+            elts.append(expr)
+            i += 2
+        return ast.Set(elts, node.get_lineno(), node.get_column())
 
     def handle_exprlist(self, exprlist, context):
         exprs = []
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to