Rename variable "bytes" to "data"
This commit is contained in:
parent
8df6d4822e
commit
6d5927c667
1 changed files with 2 additions and 2 deletions
|
@ -83,8 +83,8 @@ class Network(QtCore.QObject):
|
|||
|
||||
def _socket_read(self):
|
||||
"""Slot: data available on socket."""
|
||||
bytes = self._socket.readAll()
|
||||
self._buffer.append(bytes)
|
||||
data = self._socket.readAll()
|
||||
self._buffer.append(data)
|
||||
while len(self._buffer) >= 4:
|
||||
remainder = None
|
||||
length = struct.unpack('>i', self._buffer[0:4])[0]
|
||||
|
|
Loading…
Reference in a new issue