https://github.com/python/cpython/commit/57eab1b8f78039142d58d207d39ae734d67952cf
commit: 57eab1b8f78039142d58d207d39ae734d67952cf
branch: main
author: Rogdham <[email protected]>
committer: AA-Turner <[email protected]>
date: 2025-08-04T02:36:12+01:00
summary:
gh-132983: Use ``Py_UNREACHABLE`` in ``_zstd_load_impl()`` (#137320)
files:
M Modules/_zstd/decompressor.c
diff --git a/Modules/_zstd/decompressor.c b/Modules/_zstd/decompressor.c
index b00ee05d2f51bf..026d39f68291da 100644
--- a/Modules/_zstd/decompressor.c
+++ b/Modules/_zstd/decompressor.c
@@ -157,10 +157,7 @@ _zstd_load_impl(ZstdDecompressor *self, ZstdDict *zd,
zd->dict_len);
}
else {
- /* Impossible code path */
- PyErr_SetString(PyExc_SystemError,
- "load_d_dict() impossible code path");
- return -1;
+ Py_UNREACHABLE();
}
/* Check error */
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]