From f8ccf3389caa3fd8d9c818c6a878d29edddaef20 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Fri, 26 Oct 2018 14:09:54 -0700 Subject: Add temp workaround for upstream pylint bug Temporarily workaround https://github.com/PyCQA/pylint/issues/2571 so that we can stop pinning `pylint` (https://github.com/dpkp/kafka-python/pull/1611) --- kafka/record/_crc32c.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kafka/record/_crc32c.py b/kafka/record/_crc32c.py index 9db2d89..ecff48f 100644 --- a/kafka/record/_crc32c.py +++ b/kafka/record/_crc32c.py @@ -139,5 +139,7 @@ def crc(data): if __name__ == "__main__": import sys - data = sys.stdin.read() + # 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 print(hex(crc(data))) -- cgit v1.2.1