@@ -29,7 +29,7 @@ class VerifiableConsumer(VerifiableClient):
29
29
"""
30
30
def __init__ (self , conf ):
31
31
"""
32
- \p conf is a config dict passed to confluent_kafka.Consumer()
32
+ conf is a config dict passed to confluent_kafka.Consumer()
33
33
"""
34
34
super (VerifiableConsumer , self ).__init__ (conf )
35
35
self .conf ['on_commit' ] = self .on_commit
@@ -44,7 +44,7 @@ def __init__(self, conf):
44
44
self .assignment_dict = dict ()
45
45
46
46
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,
48
48
or None on miss. """
49
49
skey = '%s %d' % (topic , partition )
50
50
return self .assignment_dict .get (skey )
@@ -74,7 +74,7 @@ def send_records_consumed(self, immediate=False):
74
74
self .consumed_msgs_last_reported = self .consumed_msgs
75
75
76
76
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' """
78
78
d = {'name' : 'partitions_' + evtype ,
79
79
'partitions' : [{'topic' : x .topic , 'partition' : x .partition } for x in partitions ]}
80
80
self .send (d )
0 commit comments