summaryrefslogtreecommitdiff
path: root/kafka/partitioner/roundrobin.py
diff options
context:
space:
mode:
Diffstat (limited to 'kafka/partitioner/roundrobin.py')
-rw-r--r--kafka/partitioner/roundrobin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kafka/partitioner/roundrobin.py b/kafka/partitioner/roundrobin.py
index 6439e53..d244353 100644
--- a/kafka/partitioner/roundrobin.py
+++ b/kafka/partitioner/roundrobin.py
@@ -1,7 +1,10 @@
+from __future__ import absolute_import
+
from itertools import cycle
from .base import Partitioner
+
class RoundRobinPartitioner(Partitioner):
"""
Implements a round robin partitioner which sends data to partitions