diff options
author | Dana Powers <dana.powers@gmail.com> | 2016-04-05 09:34:48 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2016-04-05 09:35:45 -0700 |
commit | 5a14bd8c947251d1a8f848175cc3cf2b07af3411 (patch) | |
tree | a251ddbc60c84405762365429de9b04727653e6c /docs/simple.rst | |
parent | 221f56d8a05cdc2d37f85018e4af352b4b2a95c5 (diff) | |
download | kafka-python-5a14bd8c947251d1a8f848175cc3cf2b07af3411.tar.gz |
Update imports from kafka.common -> kafka.errors / kafka.structs
Diffstat (limited to 'docs/simple.rst')
-rw-r--r-- | docs/simple.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/simple.rst b/docs/simple.rst index 253f543..8192a8b 100644 --- a/docs/simple.rst +++ b/docs/simple.rst @@ -129,10 +129,9 @@ SimpleClient (DEPRECATED) import time from kafka import SimpleClient - from kafka.common import ( - LeaderNotAvailableError, NotLeaderForPartitionError, - ProduceRequestPayload) + from kafka.errors import LeaderNotAvailableError, NotLeaderForPartitionError from kafka.protocol import create_message + from kafka.structs import ProduceRequestPayload kafka = SimpleClient('localhost:9092') payload = ProduceRequestPayload(topic='my-topic', partition=0, |