mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
9 lines
159 B
Python
9 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
|