Skip to content

Commit 5418bb5

Browse files
committed
removed CHANGED comment indicating where line numbers were not perfectly preserved
1 parent 8e7acf6 commit 5418bb5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Python/compile.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -2376,7 +2376,7 @@ static int
23762376
compiler_visit_annexpr(struct compiler *c, expr_ty annotation)
23772377
{
23782378
location loc = LOC(annotation);
2379-
ADDOP_LOAD_CONST_NEW(c, loc, _PyAST_ExprAsUnicode(annotation)); // CHANGED
2379+
ADDOP_LOAD_CONST_NEW(c, loc, _PyAST_ExprAsUnicode(annotation));
23802380
return 1;
23812381
}
23822382

@@ -3354,10 +3354,10 @@ compiler_try_finally(struct compiler *c, stmt_ty s)
33543354
loc = location_of_last_executing_statement(s->v.Try.finalbody);
33553355
compiler_pop_fblock(c, FINALLY_END, end);
33563356

3357-
ADDOP_I(c, loc, RERAISE, 0); // CHANGED
3357+
ADDOP_I(c, loc, RERAISE, 0);
33583358

33593359
USE_LABEL(c, cleanup);
3360-
POP_EXCEPT_AND_RERAISE(c, loc); // CHANGED
3360+
POP_EXCEPT_AND_RERAISE(c, loc);
33613361

33623362
USE_LABEL(c, exit);
33633363
return 1;
@@ -3407,10 +3407,10 @@ compiler_try_star_finally(struct compiler *c, stmt_ty s)
34073407
loc = location_of_last_executing_statement(s->v.Try.finalbody);
34083408

34093409
compiler_pop_fblock(c, FINALLY_END, end);
3410-
ADDOP_I(c, loc, RERAISE, 0); // CHANGED
3410+
ADDOP_I(c, loc, RERAISE, 0);
34113411

34123412
USE_LABEL(c, cleanup);
3413-
POP_EXCEPT_AND_RERAISE(c, loc); // CHANGED
3413+
POP_EXCEPT_AND_RERAISE(c, loc);
34143414

34153415
USE_LABEL(c, exit);
34163416
return 1;
@@ -6030,7 +6030,7 @@ static int
60306030
check_ann_expr(struct compiler *c, expr_ty e)
60316031
{
60326032
VISIT(c, expr, e);
6033-
ADDOP(c, LOC(e), POP_TOP); // CHANGED
6033+
ADDOP(c, LOC(e), POP_TOP);
60346034
return 1;
60356035
}
60366036

@@ -6266,14 +6266,14 @@ compiler_slice(struct compiler *c, expr_ty s)
62666266
VISIT(c, expr, s->v.Slice.lower);
62676267
}
62686268
else {
6269-
ADDOP_LOAD_CONST(c, LOC(s), Py_None); // CHANGED
6269+
ADDOP_LOAD_CONST(c, LOC(s), Py_None);
62706270
}
62716271

62726272
if (s->v.Slice.upper) {
62736273
VISIT(c, expr, s->v.Slice.upper);
62746274
}
62756275
else {
6276-
ADDOP_LOAD_CONST(c, LOC(s), Py_None); // CHANGED
6276+
ADDOP_LOAD_CONST(c, LOC(s), Py_None);
62776277
}
62786278

62796279
if (s->v.Slice.step) {
@@ -7091,7 +7091,7 @@ compiler_match_inner(struct compiler *c, stmt_ty s, pattern_context *pc)
70917091
ADDOP(c, loc, POP_TOP);
70927092
}
70937093
VISIT_SEQ(c, stmt, m->body);
7094-
ADDOP_JUMP(c, NO_LOCATION, JUMP, end); // CHANGED
7094+
ADDOP_JUMP(c, NO_LOCATION, JUMP, end);
70957095
// If the pattern fails to match, we want the line number of the
70967096
// cleanup to be associated with the failed pattern, not the last line
70977097
// of the body

0 commit comments

Comments
 (0)