mirror of
https://github.com/python/cpython.git
synced 2026-05-08 13:40:46 -04:00
bpo-46331: Do not set line number of instruction storing doc-string. (GH-30518)
This commit is contained in:
@@ -2034,6 +2034,7 @@ compiler_body(struct compiler *c, asdl_stmt_seq *stmts)
|
||||
st = (stmt_ty)asdl_seq_GET(stmts, 0);
|
||||
assert(st->kind == Expr_kind);
|
||||
VISIT(c, expr, st->v.Expr.value);
|
||||
UNSET_LOC(c);
|
||||
if (!compiler_nameop(c, __doc__, Store))
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user