From 339b6d2afed60c5637afe383e5e559091dd8b24c Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Thu, 12 Feb 2015 00:20:55 +0000 Subject: [PATCH] Cosmetics --- kombu/transport/zookeeper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kombu/transport/zookeeper.py b/kombu/transport/zookeeper.py index c00f9a2f..34b0692e 100644 --- a/kombu/transport/zookeeper.py +++ b/kombu/transport/zookeeper.py @@ -153,7 +153,7 @@ class Channel(virtual.Channel): if not host_port: continue try: - host, port = host_port.split(":", 1) + host, port = host_port.split(':', 1) host_port = (host, int(port)) except ValueError: if host_port == conninfo.hostname: @@ -164,7 +164,7 @@ class Channel(virtual.Channel): host_port = (conninfo.hostname, conninfo.port or DEFAULT_PORT) if host_port not in hosts: hosts.insert(0, host_port) - conn_str = ",".join(["%s:%s" % (host, port) for (host, port) in hosts]) + conn_str = ",".join(['%s:%s' % (host, port) for host, port in hosts]) conn = KazooClient(conn_str) conn.start() return conn