Skip to content

Commit 4d0e8ee

Browse files
authored
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.
1 parent e39d84a commit 4d0e8ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_zstd/decompressor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ _zstd_set_d_parameters(ZstdDecompressor *self, PyObject *options)
101101
/* Check key type */
102102
if (Py_TYPE(key) == mod_state->CParameter_type) {
103103
PyErr_SetString(PyExc_TypeError,
104-
"compression options dictionary key must not be a "
104+
"decompression options dictionary key must not be a "
105105
"CompressionParameter attribute");
106106
return -1;
107107
}

0 commit comments

Comments
 (0)