From 4009692aefa37c34d136dff4fb472541bb3b832b Mon Sep 17 00:00:00 2001 From: Karl-Martin Minkner Date: Sat, 30 May 2015 11:21:42 +0200 Subject: [PATCH] Changed == to "is". --- ts3socket.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts3socket.py b/ts3socket.py index 0a49285..bd2904f 100644 --- a/ts3socket.py +++ b/ts3socket.py @@ -39,7 +39,7 @@ def connect(self): self.disconnect() def send(self, msg): - if RECONNECT == False: + if RECONNECT is False: try: return self.sock.send((msg + '\n').encode()) except socket.error as conErr: @@ -50,7 +50,7 @@ def disconnect(self): self.sock.close() def receive(self): - if RECONNECT == False: + if RECONNECT is False: try: return self.sock.recv(BUFFER_SIZE).decode() except socket.error as conErr: @@ -65,7 +65,7 @@ def reconnect(self): self.connect() def recv_all(self): - if RECONNECT == False: + if RECONNECT is False: try: total_data = [] while True: