Skip to content

Commit d961259

Browse files
authored
Remove trailing whitespace (confluentinc#1383)
1 parent d189075 commit d961259

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/confluent_kafka/src/Admin.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ static PyObject *Admin_create_acls (Handle *self, PyObject *args, PyObject *kwar
11191119
/* Use librdkafka's background thread queue to automatically dispatch
11201120
* Admin_background_event_cb() when the admin operation is finished. */
11211121
rkqu = rd_kafka_queue_get_background(self->rk);
1122-
1122+
11231123
/*
11241124
* Call CreateAcls
11251125
*
@@ -1173,7 +1173,7 @@ static PyObject *Admin_describe_acls (Handle *self, PyObject *args, PyObject *kw
11731173
CallState cs;
11741174
rd_kafka_queue_t *rkqu;
11751175
char errstr[512];
1176-
1176+
11771177
static char *kws[] = {"acl_binding_filter",
11781178
"future",
11791179
/* options */
@@ -1230,7 +1230,7 @@ static PyObject *Admin_describe_acls (Handle *self, PyObject *args, PyObject *kw
12301230
/* Use librdkafka's background thread queue to automatically dispatch
12311231
* Admin_background_event_cb() when the admin operation is finished. */
12321232
rkqu = rd_kafka_queue_get_background(self->rk);
1233-
1233+
12341234
/*
12351235
* Call DeleteAcls
12361236
*
@@ -1277,7 +1277,7 @@ static PyObject *Admin_delete_acls (Handle *self, PyObject *args, PyObject *kwar
12771277
CallState cs;
12781278
rd_kafka_queue_t *rkqu;
12791279
char errstr[512];
1280-
1280+
12811281
static char *kws[] = {"acls",
12821282
"future",
12831283
/* options */
@@ -1350,7 +1350,7 @@ static PyObject *Admin_delete_acls (Handle *self, PyObject *args, PyObject *kwar
13501350
/* Use librdkafka's background thread queue to automatically dispatch
13511351
* Admin_background_event_cb() when the admin operation is finished. */
13521352
rkqu = rd_kafka_queue_get_background(self->rk);
1353-
1353+
13541354
/*
13551355
* Call DeleteAcls
13561356
*
@@ -1710,15 +1710,15 @@ Admin_c_ConfigResource_result_to_py (const rd_kafka_ConfigResource_t **c_resourc
17101710
*/
17111711
static PyObject *
17121712
Admin_c_AclBinding_to_py (const rd_kafka_AclBinding_t *c_acl_binding) {
1713-
1713+
17141714
PyObject *args, *kwargs, *AclBinding_type, *acl_binding;
17151715

17161716
AclBinding_type = cfl_PyObject_lookup("confluent_kafka.admin",
17171717
"AclBinding");
17181718
if (!AclBinding_type) {
17191719
return NULL;
17201720
}
1721-
1721+
17221722
kwargs = PyDict_New();
17231723

17241724
cfl_PyDict_SetInt(kwargs, "restype",

src/confluent_kafka/src/Producer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ static void *Producer_purge (Handle *self, PyObject *args,
542542
return NULL;
543543
if (in_queue)
544544
purge_strategy = RD_KAFKA_PURGE_F_QUEUE;
545-
if (in_flight)
545+
if (in_flight)
546546
purge_strategy |= RD_KAFKA_PURGE_F_INFLIGHT;
547547
if (blocking)
548548
purge_strategy |= RD_KAFKA_PURGE_F_NON_BLOCKING;

src/confluent_kafka/src/confluent_kafka.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,13 @@ static void KafkaError_init (KafkaError *self,
258258
self->str = NULL;
259259
}
260260

261-
static int KafkaError_init0 (PyObject *selfobj, PyObject *args,
261+
static int KafkaError_init0 (PyObject *selfobj, PyObject *args,
262262
PyObject *kwargs) {
263263
KafkaError *self = (KafkaError *)selfobj;
264264
int code;
265265
int fatal = 0, retriable = 0, txn_requires_abort = 0;
266266
const char *reason = NULL;
267-
static char *kws[] = { "error", "reason", "fatal",
267+
static char *kws[] = { "error", "reason", "fatal",
268268
"retriable", "txn_requires_abort", NULL };
269269

270270
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "i|ziii", kws, &code,
@@ -1849,7 +1849,7 @@ rd_kafka_conf_t *common_conf_setup (rd_kafka_type_t ktype,
18491849
PyDict_Update(confdict, kwargs);
18501850
}
18511851

1852-
if (ktype == RD_KAFKA_CONSUMER &&
1852+
if (ktype == RD_KAFKA_CONSUMER &&
18531853
!PyDict_GetItemString(confdict, "group.id")) {
18541854

18551855
PyErr_SetString(PyExc_ValueError,

tests/integration/schema_registry/gen/NestedTestProto_pb2.py

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_Consumer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def test_multiple_close_does_not_throw_exception():
230230

231231

232232
def test_any_method_after_close_throws_exception():
233-
""" Calling any consumer method after close should thorw a RuntimeError
233+
""" Calling any consumer method after close should throw a RuntimeError
234234
"""
235235
c = Consumer({'group.id': 'test',
236236
'enable.auto.commit': True,

0 commit comments

Comments
 (0)