From 01b592f279ba36646edc945f28c4c96bf6ad594f Mon Sep 17 00:00:00 2001 From: "Fanani M. Ihsan" Date: Mon, 23 May 2016 14:09:32 +0700 Subject: [PATCH] remove unused variable --- zk/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zk/base.py b/zk/base.py index a5801b4..aeccbc5 100644 --- a/zk/base.py +++ b/zk/base.py @@ -9,7 +9,6 @@ class ZK(object): __data_recv = None def __init__(self, ip, port=4370, timeout=5): - self.address = (ip, port) self.__address = (ip, port) self.__sock = socket(AF_INET, SOCK_DGRAM) self.__sock.settimeout(timeout) @@ -77,7 +76,7 @@ class ZK(object): command = const.CMD_CONNECT try: buf = self.__create_header(command=command) - self.__sock.sendto(buf, self.address) + self.__sock.sendto(buf, self.__address) self.__data_recv, addr = self.__sock.recvfrom(1024) if self.__response == const.CMD_ACK_OK: