added filesocket.py for 2.6 compatibility

This commit is contained in:
Nathan Fritz 2010-01-08 07:45:26 -08:00
parent 13d7328886
commit 2193d5c962

View file

@ -0,0 +1,8 @@
from socket import _fileobject
class filesocket(_fileobject):
def read(self, size=-1):
data = self._sock.recv(size)
if data is not None:
return data