Skip to content

Commit e128e46

Browse files
wbarnhaJongy
authored andcommitted
Fix crc32c's __main__ for Python 3 (dpkp#142)
* Fix crc32c's __main__ for Python 3 * Remove TODO from _crc32c.py --------- Co-authored-by: Yonatan Goldschmidt <[email protected]>
1 parent 6efab69 commit e128e46

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kafka/record/_crc32c.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,5 @@ def crc(data):
139139

140140
if __name__ == "__main__":
141141
import sys
142-
# TODO remove the pylint disable once pylint fixes
143-
# https://github.com/PyCQA/pylint/issues/2571
144-
data = sys.stdin.read() # pylint: disable=assignment-from-no-return
142+
data = sys.stdin.buffer.read() # pylint: disable=assignment-from-no-return
145143
print(hex(crc(data)))

0 commit comments

Comments
 (0)