Author: Konstantin Lopuhin <kostia.lopu...@gmail.com>
Branch: py3k-list-compr-or
Changeset: r66102:d0489e1cc387
Date: 2013-08-06 23:38 +0200
http://bitbucket.org/pypy/pypy/changeset/d0489e1cc387/

Log:    hmm, not sure why handle_testlist was here in the first place - this
        is the fix

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
@@ -1289,7 +1289,7 @@
     def handle_listcomp(self, listcomp_node):
         elt = self.handle_expr(listcomp_node.children[0])
         comps = self.comprehension_helper(listcomp_node.children[1],
-                                          "handle_testlist",
+                                          "handle_expr",
                                           syms.comp_for, syms.comp_if,
                                           syms.comp_iter,
                                           comp_fix_unamed_tuple_location=True)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to