Remove unused imports
This commit is contained in:
@@ -3,7 +3,6 @@ from __future__ import absolute_import
|
|||||||
import collections
|
import collections
|
||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
import random
|
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@ from .base import (
|
|||||||
)
|
)
|
||||||
from ..common import (
|
from ..common import (
|
||||||
FetchRequestPayload, KafkaError, OffsetRequestPayload,
|
FetchRequestPayload, KafkaError, OffsetRequestPayload,
|
||||||
ConsumerFetchSizeTooSmall, ConsumerNoMoreData,
|
ConsumerFetchSizeTooSmall,
|
||||||
UnknownTopicOrPartitionError, NotLeaderForPartitionError,
|
UnknownTopicOrPartitionError, NotLeaderForPartitionError,
|
||||||
OffsetOutOfRangeError, FailedPayloadsError, check_error
|
OffsetOutOfRangeError, FailedPayloadsError, check_error
|
||||||
)
|
)
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
import copy
|
import copy
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import kafka.errors as Errors
|
|
||||||
|
|
||||||
|
|
||||||
class Heartbeat(object):
|
class Heartbeat(object):
|
||||||
DEFAULT_CONFIG = {
|
DEFAULT_CONFIG = {
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
import functools
|
import functools
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import kafka.errors as Errors
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -3,7 +3,6 @@ from __future__ import absolute_import
|
|||||||
import atexit
|
import atexit
|
||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
import signal
|
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
@@ -6,14 +6,11 @@ import logging
|
|||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import six
|
|
||||||
|
|
||||||
from .. import errors as Errors
|
from .. import errors as Errors
|
||||||
from ..structs import TopicPartition
|
|
||||||
from ..protocol.message import Message, MessageSet
|
from ..protocol.message import Message, MessageSet
|
||||||
from .buffer import MessageSetBuffer, SimpleBufferPool
|
from .buffer import MessageSetBuffer, SimpleBufferPool
|
||||||
from .future import FutureRecordMetadata, FutureProduceResult
|
from .future import FutureRecordMetadata, FutureProduceResult
|
||||||
|
from ..structs import TopicPartition
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
@@ -3,7 +3,6 @@ from __future__ import absolute_import
|
|||||||
from itertools import cycle
|
from itertools import cycle
|
||||||
import logging
|
import logging
|
||||||
import random
|
import random
|
||||||
import six
|
|
||||||
|
|
||||||
from six.moves import xrange
|
from six.moves import xrange
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user