Skip to content

Commit 4f988d6

Browse files
authored
Syntax highlighting for Avro examples
Removed some excessive imports
1 parent def5680 commit 4f988d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ c.close()
4747
```
4848

4949
**AvroProducer**
50-
```
50+
51+
```python
5152
from confluent_kafka import avro
5253
from confluent_kafka.avro import AvroProducer
5354

@@ -61,9 +62,8 @@ avroProducer.produce(topic='my_topic', value=value, key=key)
6162
```
6263

6364
**AvroConsumer**
64-
```
65-
import sys
66-
import traceback
65+
66+
```python
6767
from confluent_kafka import KafkaError
6868
from confluent_kafka.avro import AvroConsumer
6969
from confluent_kafka.avro.serializer import SerializerError

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