Skip to content

Commit

Permalink
Changed == to "is".
Browse files Browse the repository at this point in the history
  • Loading branch information
derkalle4 committed May 30, 2015
1 parent d7c452e commit 4009692
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts3socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 4009692

Please sign in to comment.