mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
added filesocket.py for 2.6 compatibility
This commit is contained in:
parent
13d7328886
commit
2193d5c962
1 changed files with 8 additions and 0 deletions
8
sleekxmpp/xmlstream/filesocket.py
Normal file
8
sleekxmpp/xmlstream/filesocket.py
Normal 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
|
Loading…
Reference in a new issue