From faa135acbfcd55f79fb97f7525c8aa6f5a5b6a22 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Fri, 6 Oct 2017 02:08:57 -0400 Subject: bpo-31709: Drop support for asynchronous __aiter__. (#3903) --- Python/compile.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index df5070aad2..431e7531e8 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2298,8 +2298,6 @@ compiler_async_for(struct compiler *c, stmt_ty s) VISIT(c, expr, s->v.AsyncFor.iter); ADDOP(c, GET_AITER); - ADDOP_O(c, LOAD_CONST, Py_None, consts); - ADDOP(c, YIELD_FROM); compiler_use_next_block(c, try); @@ -3867,8 +3865,6 @@ compiler_async_comprehension_generator(struct compiler *c, /* Sub-iter - calculate on the fly */ VISIT(c, expr, gen->iter); ADDOP(c, GET_AITER); - ADDOP_O(c, LOAD_CONST, Py_None, consts); - ADDOP(c, YIELD_FROM); } compiler_use_next_block(c, try); @@ -4033,8 +4029,6 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type, if (outermost->is_async) { ADDOP(c, GET_AITER); - ADDOP_O(c, LOAD_CONST, Py_None, consts); - ADDOP(c, YIELD_FROM); } else { ADDOP(c, GET_ITER); } -- cgit v1.2.1