python-zk/kazoo — pull request #144 by tsires (2013-11-14 14:25:38+00:00)
Title: Fix handling of IPv6 hosts in command

The command method in the client fails to create a socket for IPv6 hosts. The problem is that create_connection expects a 2-tuple of (addr, port) for both IPv4 and IPv6, but, getpeername returns a 4-tuple of (addr, port, flow, scope) for IPv6 sockets. Slicing out the first 2 items fixes this problem and works fine in either case.