Rename variable "bytes" to "data"

This commit is contained in:
Sébastien Helleu 2014-07-07 20:53:18 +02:00
parent 8df6d4822e
commit 6d5927c667

View file

@ -83,8 +83,8 @@ class Network(QtCore.QObject):
def _socket_read(self): def _socket_read(self):
"""Slot: data available on socket.""" """Slot: data available on socket."""
bytes = self._socket.readAll() data = self._socket.readAll()
self._buffer.append(bytes) self._buffer.append(data)
while len(self._buffer) >= 4: while len(self._buffer) >= 4:
remainder = None remainder = None
length = struct.unpack('>i', self._buffer[0:4])[0] length = struct.unpack('>i', self._buffer[0:4])[0]