summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/filesocket.py
blob: 92d61e61b8cc6e875e1a02c7f3ed2cd0b4d1ce4e (plain)
1
2
3
4
5
6
7
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