diff options
author | Mark Roberts <markroberts@kixeye.com> | 2014-03-18 20:19:25 -0700 |
---|---|---|
committer | Mark Roberts <markroberts@kixeye.com> | 2014-03-18 20:19:25 -0700 |
commit | a6fc260f288ac639070783a0f6faa94bd7612c67 (patch) | |
tree | 8c123df8e2f5c3afab5184f0d6d6f2f9ba8f5aa8 /kafka/conn.py | |
parent | 888f206d5417e95f26de407b28fe935950aea2c9 (diff) | |
parent | 9599215bf28b65a29908b8644dcaa6f3614a425d (diff) | |
download | kafka-python-a6fc260f288ac639070783a0f6faa94bd7612c67.tar.gz |
Merge branch 'master' into conn_refactor
Diffstat (limited to 'kafka/conn.py')
-rw-r--r-- | kafka/conn.py | 4 |
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 = [] |