From 829c37feee6e82419f582df9b4acfccff9ec10d6 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Thu, 17 Sep 2020 11:47:26 -0700 Subject: [PATCH] Fix crc32c deprecation warning Fix a deprecation warning in the newest version. --- kafka/record/util.py | 2 +- requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kafka/record/util.py b/kafka/record/util.py index 2f8286d0d..3b712005d 100644 --- a/kafka/record/util.py +++ b/kafka/record/util.py @@ -2,7 +2,7 @@ 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 6c3a6668e..22df8cd01 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