Skip to content

Commit 5e1adb4

Browse files
authored
gh-100577: Replace assert(0) with Py_UNREACHABLE in symtable.c (#100579)
1 parent 457c1f4 commit 5e1adb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/symtable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ symtable_extend_namedexpr_scope(struct symtable *st, expr_ty e)
15391539
/* We should always find either a FunctionBlock, ModuleBlock or ClassBlock
15401540
and should never fall to this case
15411541
*/
1542-
assert(0);
1542+
Py_UNREACHABLE();
15431543
return 0;
15441544
}
15451545

0 commit comments

Comments
 (0)