Mercurial > public > mercurial-scm > hg
diff contrib/python-zstandard/zstandard/cffi.py @ 42937:69de49c4e39c
zstandard: vendor python-zstandard 0.12
The upstream source distribution from PyPI was extracted. Unwanted
files were removed.
The clang-format ignore list was updated to reflect the new source
of files.
test-repo-compengines.t was updated to reflect a change in behavior
of the zstd library.
The project contains a vendored copy of zstandard 1.4.3. The old
version was 1.3.8. This should result in some minor performance wins.
# no-check-commit because 3rd party code has different style guidelines
Differential Revision: https://phab.mercurial-scm.org/D6858
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 15 Sep 2019 20:04:00 -0700 |
parents | 675775c33ab6 |
children | de7838053207 |
line wrap: on
line diff
--- a/contrib/python-zstandard/zstandard/cffi.py Sun Sep 15 00:07:30 2019 -0400 +++ b/contrib/python-zstandard/zstandard/cffi.py Sun Sep 15 20:04:00 2019 -0700 @@ -416,7 +416,7 @@ def _set_compression_parameter(params, param, value): - zresult = lib.ZSTD_CCtxParam_setParameter(params, param, value) + zresult = lib.ZSTD_CCtxParams_setParameter(params, param, value) if lib.ZSTD_isError(zresult): raise ZstdError('unable to set compression context parameter: %s' % _zstd_error(zresult)) @@ -425,7 +425,7 @@ def _get_compression_parameter(params, param): result = ffi.new('int *') - zresult = lib.ZSTD_CCtxParam_getParameter(params, param, result) + zresult = lib.ZSTD_CCtxParams_getParameter(params, param, result) if lib.ZSTD_isError(zresult): raise ZstdError('unable to get compression context parameter: %s' % _zstd_error(zresult))