1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

Removed unused FakeRead

This commit is contained in:
slush 2013-03-10 17:52:36 +01:00
parent c0d267e7d8
commit a2ad820ac1

View File

@ -4,15 +4,6 @@ import socket
from select import select
from transport import Transport
class FakeRead(object):
# Because socket is the only transport which don't implement read()
def __init__(self, socket):
self.socket = socket
def read(self, size):
return self.socket.recv(size)
class SocketTransportClient(Transport):
def __init__(self, device, *args, **kwargs):
device = device.split(':')
@ -94,7 +85,7 @@ class SocketTransport(Transport):
if len(rlist) > 0:
(self.client, ipaddr) = self.socket.accept()
print "Connected", ipaddr[0]
self.filelike = self.client.makefile()#FakeRead(self.client)#self.client.makefile()
self.filelike = self.client.makefile()
return self.ready_to_read()
return False