Skip to content

Commit 7e8cdd6

Browse files
cuiweixieclin1234
authored andcommitted
pythongh-146579: _zstd: Fix decompression options dict error message (python#146577)
The TypeError in _zstd_set_d_parameters incorrectly referred to compression options; say decompression options instead.
1 parent ce074c6 commit 7e8cdd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)