From 850272aeb4ac87d638358b4d542934c13b9ae399 Mon Sep 17 00:00:00 2001 From: cui Date: Mon, 30 Mar 2026 03:58:12 +0800 Subject: [PATCH] gh-146579: _zstd: Fix decompression options dict error message (GH-146577) 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 --- Modules/_zstd/decompressor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_zstd/decompressor.c b/Modules/_zstd/decompressor.c index 026d39f68291da..bd78c2259900e5 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; }