diff options
author | Dana Powers <dana.powers@rd.io> | 2016-01-12 16:52:30 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@rd.io> | 2016-01-12 16:52:30 -0800 |
commit | 4079a582b07989e683bcb2d87f6d522ed61a4f66 (patch) | |
tree | deba002c4b9ce6407fe8160afceccc25d9660b09 /kafka/consumer/multiprocess.py | |
parent | dcad3fea16028ae00f64baa981553b62666b15fb (diff) | |
download | kafka-python-deprecation_warnings.tar.gz |
Add DeprecationWarnings to legacy KafkaClient, Simple/MultiProcess/Consumer, and KafkaConnectiondeprecation_warnings
Diffstat (limited to 'kafka/consumer/multiprocess.py')
-rw-r--r-- | kafka/consumer/multiprocess.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kafka/consumer/multiprocess.py b/kafka/consumer/multiprocess.py index 9358b09..fddb269 100644 --- a/kafka/consumer/multiprocess.py +++ b/kafka/consumer/multiprocess.py @@ -4,6 +4,7 @@ from collections import namedtuple import logging from multiprocessing import Process, Manager as MPManager import time +import warnings from six.moves import queue @@ -135,6 +136,10 @@ class MultiProcessConsumer(Consumer): partitions_per_proc=0, **simple_consumer_options): + warnings.warn('This class has been deprecated and will be removed in a' + ' future release. Use KafkaConsumer instead', + DeprecationWarning) + # Initiate the base consumer class super(MultiProcessConsumer, self).__init__( client, group, topic, |