diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2012-11-25 14:37:43 +0000 |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2012-11-25 14:37:43 +0000 |
commit | 073f0673697380a00dc2067ab3a999354893df51 (patch) | |
tree | ea7fc1d821d1aeaf0d8f7ca68ac22545ab63925f /Python/ast.c | |
parent | ab56710989745ff11c10205ea993c2e423c22f75 (diff) | |
parent | ded35aeb9d5ae1671174f10c0ae8a7166693b17c (diff) | |
download | cpython-git-073f0673697380a00dc2067ab3a999354893df51.tar.gz |
Issue #16546: merge fix from 3.3
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/ast.c b/Python/ast.c index 0c0c1a68d9..7657b22459 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -224,8 +224,7 @@ validate_expr(expr_ty exp, expr_context_ty ctx) case Yield_kind: return !exp->v.Yield.value || validate_expr(exp->v.Yield.value, Load); case YieldFrom_kind: - return !exp->v.YieldFrom.value || - validate_expr(exp->v.YieldFrom.value, Load); + return validate_expr(exp->v.YieldFrom.value, Load); case Compare_kind: if (!asdl_seq_LEN(exp->v.Compare.comparators)) { PyErr_SetString(PyExc_ValueError, "Compare with no comparators"); |