diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2020-09-17 12:27:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 12:27:58 -0700 |
commit | 16f48671e6c821c1174acc8fe27eee58a2316156 (patch) | |
tree | 43b06259437ca957709582173e8e4516c11874fa | |
parent | 098ecbfd79ce8919c1d3dec50a207bbbe62c894c (diff) | |
download | kafka-python-16f48671e6c821c1174acc8fe27eee58a2316156.tar.gz |
Fix crc32c deprecation warning (#2128)
Fix a deprecation warning in the newest version.
-rw-r--r-- | kafka/record/util.py | 2 | ||||
-rw-r--r-- | requirements-dev.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kafka/record/util.py b/kafka/record/util.py index 2f8286d..3b71200 100644 --- a/kafka/record/util.py +++ b/kafka/record/util.py @@ -2,7 +2,7 @@ import binascii from kafka.record._crc32c import crc as crc32c_py try: - from crc32c import crc32 as crc32c_c + from crc32c import crc32c as crc32c_c except ImportError: crc32c_c = None diff --git a/requirements-dev.txt b/requirements-dev.txt index 6c3a666..22df8cd 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -13,5 +13,5 @@ pylint==2.5.3 pytest-pylint==0.17.0 pytest-mock==1.10.0 sphinx-rtd-theme==0.2.4 -crc32c==1.7 +crc32c==2.1 py==1.8.0 |