Mercurial > cpython-lru_cache-weakref
diff Python/ast.c @ 80589:ffb2fa900cb7 3.3
Issue #16546: make ast.YieldFrom argument mandatory.
| author | Mark Dickinson <mdickinson@enthought.com> |
|---|---|
| date | Sun, 25 Nov 2012 14:36:26 +0000 |
| parents | 2c9f1a578861 |
| children | c08bcf5302ec 03f92a9f0875 |
line wrap: on
line diff
--- a/Python/ast.c Sat Nov 24 20:41:34 2012 +0100 +++ b/Python/ast.c Sun Nov 25 14:36:26 2012 +0000 @@ -224,8 +224,7 @@ 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");
