diff --git a/cassandra/policies.py b/cassandra/policies.py index 328b6b82..8132f8ab 100644 --- a/cassandra/policies.py +++ b/cassandra/policies.py @@ -173,7 +173,7 @@ class RoundRobinPolicy(LoadBalancingPolicy): length = len(hosts) if length: pos %= length - return list(islice(cycle(hosts), pos, pos + length)) + return islice(cycle(hosts), pos, pos + length) else: return []