summaryrefslogtreecommitdiff
path: root/test/test_producer_legacy.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-04-05 09:34:48 -0700
committerDana Powers <dana.powers@gmail.com>2016-04-05 09:35:45 -0700
commit5a14bd8c947251d1a8f848175cc3cf2b07af3411 (patch)
treea251ddbc60c84405762365429de9b04727653e6c /test/test_producer_legacy.py
parent221f56d8a05cdc2d37f85018e4af352b4b2a95c5 (diff)
downloadkafka-python-5a14bd8c947251d1a8f848175cc3cf2b07af3411.tar.gz
Update imports from kafka.common -> kafka.errors / kafka.structs
Diffstat (limited to 'test/test_producer_legacy.py')
-rw-r--r--test/test_producer_legacy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_producer_legacy.py b/test/test_producer_legacy.py
index 850cb80..9b87c76 100644
--- a/test/test_producer_legacy.py
+++ b/test/test_producer_legacy.py
@@ -9,12 +9,12 @@ from mock import MagicMock, patch
from . import unittest
from kafka import SimpleClient, SimpleProducer, KeyedProducer
-from kafka.common import (
- AsyncProducerQueueFull, FailedPayloadsError, NotLeaderForPartitionError,
- ProduceResponsePayload, RetryOptions, TopicPartition
-)
+from kafka.errors import (
+ AsyncProducerQueueFull, FailedPayloadsError, NotLeaderForPartitionError)
from kafka.producer.base import Producer, _send_upstream
from kafka.protocol import CODEC_NONE
+from kafka.structs import (
+ ProduceResponsePayload, RetryOptions, TopicPartition)
from six.moves import queue, xrange