Skip to content

Commit d35fc75

Browse files
committed
Fix flake8 errors
1 parent a0e231d commit d35fc75

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

confluent_kafka/kafkatest/verifiable_consumer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class VerifiableConsumer(VerifiableClient):
2929
"""
3030
def __init__(self, conf):
3131
"""
32-
\p conf is a config dict passed to confluent_kafka.Consumer()
32+
conf is a config dict passed to confluent_kafka.Consumer()
3333
"""
3434
super(VerifiableConsumer, self).__init__(conf)
3535
self.conf['on_commit'] = self.on_commit
@@ -44,7 +44,7 @@ def __init__(self, conf):
4444
self.assignment_dict = dict()
4545

4646
def find_assignment(self, topic, partition):
47-
""" Find and return existing assignment based on \p topic and \p partition,
47+
""" Find and return existing assignment based on topic and partition,
4848
or None on miss. """
4949
skey = '%s %d' % (topic, partition)
5050
return self.assignment_dict.get(skey)
@@ -74,7 +74,7 @@ def send_records_consumed(self, immediate=False):
7474
self.consumed_msgs_last_reported = self.consumed_msgs
7575

7676
def send_assignment(self, evtype, partitions):
77-
""" Send assignment update, \p evtype is either 'assigned' or 'revoked' """
77+
""" Send assignment update, evtype is either 'assigned' or 'revoked' """
7878
d = {'name': 'partitions_' + evtype,
7979
'partitions': [{'topic': x.topic, 'partition': x.partition} for x in partitions]}
8080
self.send(d)

confluent_kafka/kafkatest/verifiable_producer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class VerifiableProducer(VerifiableClient):
2828
"""
2929
def __init__(self, conf):
3030
"""
31-
\p conf is a config dict passed to confluent_kafka.Producer()
31+
conf is a config dict passed to confluent_kafka.Producer()
3232
"""
3333
super(VerifiableProducer, self).__init__(conf)
3434
self.conf['on_delivery'] = self.dr_cb

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