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