8000 Lower minimum required version 1.4.0 · python/cpython@40c653c · GitHub
[go: up one dir, main page]

Skip to content

Commit 40c653c

Browse files
committed
Lower minimum required version 1.4.0
1 parent 1b9f786 commit 40c653c

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

Modules/_zstd/_zstdmodule.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,6 @@ _zstd__finalize_dict_impl(PyObject *module, PyBytesObject *custom_dict_bytes,
301301
int compression_level)
302302
/*[clinic end generated code: output=9c2a7d8c845cee93 input=ef6f4f2b0b7e178d]*/
303303
{
304-
if (ZSTD_versionNumber() < PYTHON_MINIMUM_SUPPORTED_ZSTD_VERSION) {
305-
/* Must be dynamically linked */
306-
PyErr_Format(PyExc_NotImplementedError,
307-
"The _finalize_dict function is only available when the underlying "
308-
"zstd library's version is greater than or equal to v1.4.5. "
309-
"The current zstd version is v%s.",
310-
ZSTD_versionString());
311-
return NULL;
312-
}
313-
314304
Py_ssize_t chunks_number;
315305
size_t *chunk_sizes = NULL;
316306
PyObject *dst_dict_bytes = NULL;

Modules/_zstd/_zstdmodule.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Python module.
1313

1414
#include "pycore_lock.h" // PyMutex APIs
1515

16-
#define PYTHON_MINIMUM_SUPPORTED_ZSTD_VERSION 10405
16+
#define PYTHON_MINIMUM_SUPPORTED_ZSTD_VERSION 10400
1717

1818
#if ZSTD_VERSION_NUMBER < PYTHON_MINIMUM_SUPPORTED_ZSTD_VERSION
19-
#error "_zstd module requires zstd v1.4.5+"
19+
#error "_zstd module requires zstd v1.4.0+"
2020
#endif
2121

2222
/* Forward declaration of module state */

0 commit comments

Comments
 (0)
0