Better looking version now
This commit is contained in:
@@ -48,10 +48,8 @@ class Networking:
|
||||
def getInputEvent(self):
|
||||
header = list()
|
||||
while b'\x02' not in header:
|
||||
bla = self.input_socket.recv(1)
|
||||
header.append(bla)
|
||||
s = ""
|
||||
for x in header:
|
||||
s += x.decode('utf8')
|
||||
byte = self.input_socket.recv(1)
|
||||
header.append(byte)
|
||||
header = [x.decode('utf8') for x in header[:-1]]
|
||||
|
||||
return s
|
||||
return str().join(header)
|
||||
|
||||
Reference in New Issue
Block a user