summaryrefslogtreecommitdiff
path: root/kafka/conn.py
diff options
context:
space:
mode:
Diffstat (limited to 'kafka/conn.py')
-rw-r--r--kafka/conn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kafka/conn.py b/kafka/conn.py
index 7dcd726..4fdeb17 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -15,11 +15,11 @@ DEFAULT_KAFKA_PORT = 9092
def collect_hosts(hosts, randomize=True):
"""
- Collects a comma-separated set of hosts (host:port) and optionnaly
+ Collects a comma-separated set of hosts (host:port) and optionally
randomize the returned list.
"""
- if isinstance(hosts, str):
+ if isinstance(hosts, basestring):
hosts = hosts.strip().split(',')
result = []