summaryrefslogtreecommitdiff
path: root/kafka/consumer
diff options
context:
space:
mode:
authorDana Powers <dana.powers@rd.io>2016-01-01 22:59:55 -0800
committerDana Powers <dana.powers@rd.io>2016-01-01 23:00:13 -0800
commitb6e9b7f74dd1f48b5331600fc4c80406c35c6993 (patch)
tree9dd95a6791aa09174fccbf44d3c0cd20d2126305 /kafka/consumer
parenteab50649297033a7c0883fb30b7f6e0ade77b603 (diff)
downloadkafka-python-b6e9b7f74dd1f48b5331600fc4c80406c35c6993.tar.gz
Disable pylint errors for py2/py3 compatibility workarounds
Diffstat (limited to 'kafka/consumer')
-rw-r--r--kafka/consumer/base.py3
-rw-r--r--kafka/consumer/simple.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/kafka/consumer/base.py b/kafka/consumer/base.py
index 4ac8c66..a90038f 100644
--- a/kafka/consumer/base.py
+++ b/kafka/consumer/base.py
@@ -197,7 +197,8 @@ class Consumer(object):
# ValueError on list.remove() if the exithandler no longer
# exists is fine here
try:
- atexit._exithandlers.remove((self._cleanup_func, (self,), {}))
+ atexit._exithandlers.remove( # pylint: disable=no-member
+ (self._cleanup_func, (self,), {}))
except ValueError:
pass
diff --git a/kafka/consumer/simple.py b/kafka/consumer/simple.py
index 9c2812b..946e9c7 100644
--- a/kafka/consumer/simple.py
+++ b/kafka/consumer/simple.py
@@ -3,7 +3,7 @@ from __future__ import absolute_import
try:
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
+ from itertools import izip_longest as izip_longest, repeat # pylint: disable=E0611
import logging
try:
import queue # python 3