Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r59199:6b7661642a1b
Date: 2012-12-01 23:32 +0100
http://bitbucket.org/pypy/pypy/changeset/6b7661642a1b/

Log:    Refine error message to match CPython.

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
@@ -725,7 +725,8 @@
             for i in range(0, len(stmt.children) - 2, 2):
                 target_node = stmt.children[i]
                 if target_node.type == syms.yield_expr:
-                    self.error("can't assign to yield expression", target_node)
+                    self.error("assignment to yield expression not possible",
+                               target_node)
                 target_expr = self.handle_testlist(target_node)
                 self.set_context(target_expr, ast.Store)
                 targets.append(target_expr)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to