https://github.com/python/cpython/commit/4d0e8ee649ceff96b130e1676a73c20c469624a9
commit: 4d0e8ee649ceff96b130e1676a73c20c469624a9
branch: main
author: cui <[email protected]>
committer: emmatyping <[email protected]>
date: 2026-03-29T12:58:12-07:00
summary:

gh-146579: _zstd: Fix decompression options dict error message (#146577)

The TypeError in _zstd_set_d_parameters incorrectly referred to
compression options; say decompression options instead.

files:
M Modules/_zstd/decompressor.c

diff --git a/Modules/_zstd/decompressor.c b/Modules/_zstd/decompressor.c
index 13071b7a2bacf0..0186ee92f5b147 100644
--- a/Modules/_zstd/decompressor.c
+++ b/Modules/_zstd/decompressor.c
@@ -101,7 +101,7 @@ _zstd_set_d_parameters(ZstdDecompressor *self, PyObject 
*options)
         /* Check key type */
         if (Py_TYPE(key) == mod_state->CParameter_type) {
             PyErr_SetString(PyExc_TypeError,
-                "compression options dictionary key must not be a "
+                "decompression options dictionary key must not be a "
                 "CompressionParameter attribute");
             return -1;
         }

_______________________________________________
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]

Reply via email to