new pylint disables for pylint 1.5.1

tested locally with `pylint --rcfile=pylint.rc -E kafka test`. should
pass travis builds.
This commit is contained in:
Zack Dever
2015-12-02 16:23:01 -08:00
parent 3e28b42e66
commit 16f6154778
3 changed files with 3 additions and 3 deletions

View File

@@ -661,7 +661,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
raise # pylint: disable-msg=E0704
(offset, ) = self.get_partition_offsets(topic, partition,
request_time_ms, max_num_offsets=1)

View File

@@ -166,7 +166,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
raise # pylint: disable-msg=E0704
# send_offset_request
log.info('Resetting topic-partition offset to %s for %s:%d',

View File

@@ -8,7 +8,7 @@ import time
from six.moves import urllib
import uuid
from six.moves.urllib.parse import urlparse # pylint: disable-msg=E0611
from six.moves.urllib.parse import urlparse # pylint: disable-msg=E0611,F0401
from test.service import ExternalService, SpawnedService
from test.testutil import get_open_port