]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-146579: _zstd: Fix decompression options dict error message (GH-146577...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Mar 2026 08:26:45 +0000 (10:26 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Mar 2026 08:26:45 +0000 (08:26 +0000)
The TypeError in _zstd_set_d_parameters incorrectly referred to
compression options; say decompression options instead.
(cherry picked from commit 4d0e8ee649ceff96b130e1676a73c20c469624a9)

Co-authored-by: cui <cuiweixie@gmail.com>
Modules/_zstd/decompressor.c

index 026d39f68291dad3ddce4ca5b9f6374550b83a48..bd78c2259900e530c2e9f26fab6ddcced2a1e76b 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;
         }