From 4079a582b07989e683bcb2d87f6d522ed61a4f66 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Tue, 12 Jan 2016 16:52:30 -0800 Subject: Add DeprecationWarnings to legacy KafkaClient, Simple/MultiProcess/Consumer, and KafkaConnection --- kafka/consumer/multiprocess.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kafka/consumer/multiprocess.py') 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, -- cgit v1.2.1