Skip to content

Commit 3da1dea

Browse files
committed
Fix flake8 warnings
1 parent 05be02c commit 3da1dea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

confluent_kafka/kafkatest/verifiable_client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,24 @@ def set_config(conf, args):
7575
# App config, skip
7676
continue
7777

78-
n = n[5:] # Remove conf_ prefix
78+
# Remove conf_ prefix
79+
n = n[5:]
7980

81+
# Handle known Java properties to librdkafka properties.
8082
if n == 'partition.assignment.strategy':
8183
# Convert Java class name to config value.
8284
# "org.apache.kafka.clients.consumer.RangeAssignor" -> "range"
8385
conf[n] = re.sub(r'org.apache.kafka.clients.consumer.(\w+)Assignor',
8486
lambda x: x.group(1).lower(), v)
85-
# Handle known Java properties to librdkafka properties.
87+
8688
elif n == 'enable.idempotence':
8789
# Ignore idempotence for now, best-effortly.
8890
sys.stderr.write('%% WARN: Ignoring unsupported %s=%s\n' % (n, v))
8991
else:
9092
conf[n] = v
9193

9294
@staticmethod
93-
def read_config_file (path):
95+
def read_config_file(path):
9496
"""Read (java client) config file and return dict with properties"""
9597
conf = {}
9698

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy