Skip to content

Commit

Permalink
Fix up a couple of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon committed Oct 23, 2024
1 parent cb5252b commit 892edbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Python/flowgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -2592,6 +2592,7 @@ _PyCfg_OptimizeCodeUnit(cfg_builder *g, PyObject *consts, PyObject *const_cache,

RETURN_IF_ERROR(push_cold_blocks_to_end(g));
RETURN_IF_ERROR(resolve_line_numbers(g, firstlineno));
// temporarily remove assert. See https://github.com/python/cpython/issues/125845
// assert(all_exits_have_lineno(g->g_entryblock));
return SUCCESS;
}
Expand Down
2 changes: 1 addition & 1 deletion Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ _PyCode_Quicken(PyCodeObject *code)
}
else if (opcode == LOAD_CONST) {
/* We can't do this in the bytecode compiler as
* can intern strings and make them immortal. */
* marhsalling can intern strings and make them immortal. */
oparg = (oparg << 8) | instructions[i].op.arg;
PyObject *obj = PyTuple_GET_ITEM(code->co_consts, oparg);
if (_Py_IsImmortal(obj)) {
Expand Down

0 comments on commit 892edbc

Please sign in to comment.