diff options
author | Marc Labbé <mrlabbe@gmail.com> | 2014-03-17 22:40:37 -0400 |
---|---|---|
committer | Marc Labbé <mrlabbe@gmail.com> | 2014-03-17 22:40:37 -0400 |
commit | 9599215bf28b65a29908b8644dcaa6f3614a425d (patch) | |
tree | f4cfc1daf3ba755d03be960a676dfdff5988318c /kafka/conn.py | |
parent | 32edabdaaff6746e4926cc897b4bba917a80cb54 (diff) | |
parent | e08c718ca65c04d012f32e0053e58e851b04f40e (diff) | |
download | kafka-python-9599215bf28b65a29908b8644dcaa6f3614a425d.tar.gz |
Merge pull request #144 from frgtn/check_basestring_in_collect_hosts
Check against basestring instead of str in collect.hosts.
Diffstat (limited to 'kafka/conn.py')
-rw-r--r-- | kafka/conn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/conn.py b/kafka/conn.py index 7266ae8..7538e8d 100644 --- a/kafka/conn.py +++ b/kafka/conn.py @@ -19,7 +19,7 @@ def collect_hosts(hosts, randomize=True): randomize the returned list. """ - if isinstance(hosts, str): + if isinstance(hosts, basestring): hosts = hosts.strip().split(',') result = [] |