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):
"""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]