Skip to content

Commit

Permalink
Fix crc32c's __main__ for Python 3 (dpkp#142)
Browse files Browse the repository at this point in the history
* Fix crc32c's __main__ for Python 3

* Remove TODO from _crc32c.py

---------

Co-authored-by: Yonatan Goldschmidt <[email protected]>
  • Loading branch information
2 people authored and bradenneal1 committed May 16, 2024
1 parent 6efab69 commit e128e46
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kafka/record/_crc32c.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,5 @@ def crc(data):

if __name__ == "__main__":
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 e128e46

Please sign in to comment.