Skip to content

Commit e1f788a

Browse files
committed
Fix optimizer TO_BOOL_STR
1 parent be138d0 commit e1f788a

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Python/optimizer_bytecodes.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,6 @@ dummy_func(void) {
432432
}
433433

434434
op(_TO_BOOL_STR, (value -- res)) {
435-
if (sym_matches_type(value, &PyUnicode_Type)) {
436-
REPLACE_OP(this_instr, _NOP, 0, 0);
437-
}
438435
if (!optimize_to_bool(this_instr, ctx, value, &res)) {
439436
res = sym_new_truthiness(ctx, value, true);
440437
sym_set_type(value, &PyUnicode_Type);

Python/optimizer_cases.c.h

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)