]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-146579: _zstd: Fix decompression options dict error message (#146577)
authorcui <cuiweixie@gmail.com>
Sun, 29 Mar 2026 19:58:12 +0000 (03:58 +0800)
committerGitHub <noreply@github.com>
Sun, 29 Mar 2026 19:58:12 +0000 (12:58 -0700)
The TypeError in _zstd_set_d_parameters incorrectly referred to
compression options; say decompression options instead.

Modules/_zstd/decompressor.c

index 13071b7a2bacf046607ceef4e90cbe9cd79136f8..0186ee92f5b147844c9988131e71bdcb85a95cb0 100644 (file)
@@ -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;
         }