diff options
| author | Nikita Sobolev <mail@sobolevn.me> | 2022-12-28 15:31:53 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-28 15:31:53 (GMT) |
| commit | 5e1adb4f8861f2a5969952d24c8ad0ce8ec0a8ec (patch) | |
| tree | 7c452e73b0bc738ab9b5ba1d490fb508f8bf164f /Python | |
| parent | 457c1f4a19a096a52d6553687c7c4cee415818dc (diff) | |
| download | cpython-5e1adb4f8861f2a5969952d24c8ad0ce8ec0a8ec.zip cpython-5e1adb4f8861f2a5969952d24c8ad0ce8ec0a8ec.tar.gz cpython-5e1adb4f8861f2a5969952d24c8ad0ce8ec0a8ec.tar.bz2 | |
gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` (#100579)
Diffstat (limited to 'Python')
| -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 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; } |
