]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` (#100579)
authorNikita Sobolev <mail@sobolevn.me>
Wed, 28 Dec 2022 15:31:53 +0000 (18:31 +0300)
committerGitHub <noreply@github.com>
Wed, 28 Dec 2022 15:31:53 +0000 (21:01 +0530)
Python/symtable.c

index fb2bb7d83835de6c63a6343a1f3e9fbf051c7005..3c130186d0ad41d7b8e84a1409a1b31e8816412e 100644 (file)
@@ -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;
 }