mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
com_yield_expr(): Squash new compiler wng about unreferenced local.
This commit is contained in:
parent
4e41a4b64c
commit
ea9dcdc062
1 changed files with 0 additions and 1 deletions
|
@ -3744,7 +3744,6 @@ com_return_stmt(struct compiling *c, node *n)
|
||||||
static void
|
static void
|
||||||
com_yield_expr(struct compiling *c, node *n)
|
com_yield_expr(struct compiling *c, node *n)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
REQ(n, yield_expr); /* 'yield' testlist */
|
REQ(n, yield_expr); /* 'yield' testlist */
|
||||||
if (!c->c_infunction) {
|
if (!c->c_infunction) {
|
||||||
com_error(c, PyExc_SyntaxError, "'yield' outside function");
|
com_error(c, PyExc_SyntaxError, "'yield' outside function");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue