summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2017-10-06 02:08:57 -0400
committerGitHub <noreply@github.com>2017-10-06 02:08:57 -0400
commitfaa135acbfcd55f79fb97f7525c8aa6f5a5b6a22 (patch)
tree8fd008b849b322699e20e18f92a179c06f7b0580 /Python/compile.c
parent86566702f311f8e90600e85350f6b6769a384ea5 (diff)
downloadcpython-git-faa135acbfcd55f79fb97f7525c8aa6f5a5b6a22.tar.gz
bpo-31709: Drop support for asynchronous __aiter__. (#3903)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c6
1 files changed, 0 insertions, 6 deletions
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);
}