diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-12-28 18:31:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 21:01:53 +0530 |
commit | 5e1adb4f8861f2a5969952d24c8ad0ce8ec0a8ec (patch) | |
tree | 7c452e73b0bc738ab9b5ba1d490fb508f8bf164f /Python/symtable.c | |
parent | 457c1f4a19a096a52d6553687c7c4cee415818dc (diff) | |
download | cpython-git-5e1adb4f8861f2a5969952d24c8ad0ce8ec0a8ec.tar.gz |
gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` (#100579)
Diffstat (limited to 'Python/symtable.c')
-rw-r--r-- | Python/symtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index fb2bb7d838..3c130186d0 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; } |