Skip to content

Commit

Permalink
Fix crc32c's __main__ for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jongy committed Aug 3, 2023
1 parent f0a57a6 commit 07164c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/record/_crc32c.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

0 comments on commit 07164c1

Please sign in to comment.