From 5e1adb4f8861f2a5969952d24c8ad0ce8ec0a8ec Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Wed, 28 Dec 2022 18:31:53 +0300 Subject: gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` (#100579) --- Python/symtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/symtable.c b/Python/symtable.c index fb2bb7d..3c13018 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -1539,7 +1539,7 @@ symtable_extend_namedexpr_scope(struct symtable *st, expr_ty e) /* We should always find either a FunctionBlock, ModuleBlock or ClassBlock and should never fall to this case */ - assert(0); + Py_UNREACHABLE(); return 0; } -- cgit v0.12