SleekXMPP/sleekxmpp/xmlstream/filesocket.py
2010-01-08 07:45:26 -08:00

8 lines
159 B
Python

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