diff --git a/kafka/record/_crc32c.py b/kafka/record/_crc32c.py index ecff48f5e..3988a6833 100644 --- a/kafka/record/_crc32c.py +++ b/kafka/record/_crc32c.py @@ -141,5 +141,5 @@ def crc(data): import sys # TODO remove the pylint disable once pylint fixes # https://github.com/PyCQA/pylint/issues/2571 - data = sys.stdin.read() # pylint: disable=assignment-from-no-return + data = sys.stdin.buffer.read() # pylint: disable=assignment-from-no-return print(hex(crc(data)))