Skip to content

Commit ac76520

Browse files
committed
Fix markup in README
1 parent b2a6503 commit ac76520

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ kafka.close()
4242
```
4343

4444
## Keyed messages
45+
```python
4546
from kafka.client import KafkaClient
4647
from kafka.producer import KeyedProducer
4748
from kafka.partitioner import HashedPartitioner, RoundRobinPartitioner
@@ -51,7 +52,7 @@ kafka = KafkaClient("localhost", 9092)
5152
producer = KeyedProducer(kafka, "my-topic", partitioner=HashedPartitioner)
5253
producer.send("key1", "some message")
5354
producer.send("key2", "this methode")
54-
55+
```
5556

5657
## Low level
5758

0 commit comments

Comments
 (0)