diff options
Diffstat (limited to 'kafka/consumer')
-rw-r--r-- | kafka/consumer/group.py | 1 | ||||
-rw-r--r-- | kafka/consumer/kafka.py | 2 | ||||
-rw-r--r-- | kafka/consumer/simple.py | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 5d91469..dba5f60 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -1,3 +1,4 @@ +#pylint: skip-file from __future__ import absolute_import from collections import namedtuple diff --git a/kafka/consumer/kafka.py b/kafka/consumer/kafka.py index cdf8760..3f14444 100644 --- a/kafka/consumer/kafka.py +++ b/kafka/consumer/kafka.py @@ -664,7 +664,7 @@ class KafkaConsumer(object): # Otherwise we should re-raise the upstream exception # b/c it typically includes additional data about # the request that triggered it, and we do not want to drop that - raise # pylint: disable-msg=E0704 + raise # pylint: disable=E0704 (offset, ) = self.get_partition_offsets(topic, partition, request_time_ms, max_num_offsets=1) diff --git a/kafka/consumer/simple.py b/kafka/consumer/simple.py index 9e76730..9c2812b 100644 --- a/kafka/consumer/simple.py +++ b/kafka/consumer/simple.py @@ -1,7 +1,7 @@ from __future__ import absolute_import try: - from itertools import zip_longest as izip_longest, repeat # pylint: disable-msg=E0611 + from itertools import zip_longest as izip_longest, repeat # pylint: disable=E0611 except ImportError: from itertools import izip_longest as izip_longest, repeat # python 2 import logging @@ -167,7 +167,7 @@ class SimpleConsumer(Consumer): # Otherwise we should re-raise the upstream exception # b/c it typically includes additional data about # the request that triggered it, and we do not want to drop that - raise # pylint: disable-msg=E0704 + raise # pylint: disable=E0704 # send_offset_request log.info('Resetting topic-partition offset to %s for %s:%d', |