Skip to content
Snippets Groups Projects
Commit 820cf465 authored by Sander van Veen's avatar Sander van Veen
Browse files

Added missing self keywords.

parent 98e0871b
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ class Client:
def send(self, msg):
totalsent = 0
while totalsent < MSGLEN:
while totalsent < self.MSGLEN:
sent = self.sock.send(msg[totalsent:])
if not sent:
raise RuntimeError("socket connection broken")
......@@ -22,8 +22,8 @@ class Client:
def receive(self):
msg = ''
while len(msg) < MSGLEN:
chunk = self.sock.recv(MSGLEN-len(msg))
while len(msg) < self.MSGLEN:
chunk = self.sock.recv(self.MSGLEN-len(msg))
if not chunk:
raise RuntimeError("socket connection broken")
msg = msg + chunk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment