diff options
-rw-r--r-- | kafka/admin/kafka.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/kafka/admin/kafka.py b/kafka/admin/kafka.py index 7aceea1..5ce8630 100644 --- a/kafka/admin/kafka.py +++ b/kafka/admin/kafka.py @@ -174,16 +174,6 @@ class KafkaAdmin(object): self.config = copy.copy(self.DEFAULT_CONFIG) self.config.update(configs) - # api_version was previously a str. accept old format for now - if isinstance(self.config['api_version'], str): - deprecated = self.config['api_version'] - if deprecated == 'auto': - self.config['api_version'] = None - else: - self.config['api_version'] = tuple(map(int, deprecated.split('.'))) - log.warning('use api_version=%s [tuple] -- "%s" as str is deprecated', - str(self.config['api_version']), deprecated) - # Configure metrics metrics_tags = {'client-id': self.config['client_id']} metric_config = MetricConfig(samples=self.config['metrics_num_samples'], |