1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- contrib/python/zstandard/py2/c-ext/constants.c (index)
+++ contrib/python/zstandard/py2/c-ext/constants.c (working tree)
@@ -77,7 +77,6 @@ void constants_module_init(PyObject* mod) {
PyModule_AddIntConstant(mod, "CHAINLOG_MAX", ZSTD_CHAINLOG_MAX);
PyModule_AddIntConstant(mod, "HASHLOG_MIN", ZSTD_HASHLOG_MIN);
PyModule_AddIntConstant(mod, "HASHLOG_MAX", ZSTD_HASHLOG_MAX);
- PyModule_AddIntConstant(mod, "HASHLOG3_MAX", ZSTD_HASHLOG3_MAX);
PyModule_AddIntConstant(mod, "SEARCHLOG_MIN", ZSTD_SEARCHLOG_MIN);
PyModule_AddIntConstant(mod, "SEARCHLOG_MAX", ZSTD_SEARCHLOG_MAX);
PyModule_AddIntConstant(mod, "MINMATCH_MIN", ZSTD_MINMATCH_MIN);
--- contrib/python/zstandard/py2/zstd.c (index)
+++ contrib/python/zstandard/py2/zstd.c (working tree)
@@ -210,11 +210,6 @@ void zstd_module_init(PyObject* m) {
We detect this mismatch here and refuse to load the module if this
scenario is detected.
*/
- if (ZSTD_VERSION_NUMBER != 10405 || ZSTD_versionNumber() != 10405) {
- PyErr_SetString(PyExc_ImportError, "zstd C API mismatch; Python bindings not compiled against expected zstd version");
- return;
- }
-
bufferutil_module_init(m);
compressionparams_module_init(m);
compressiondict_module_init(m);
|