added filesocket.py for 2.6 compatibility
This commit is contained in:
parent
13d7328886
commit
2193d5c962
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…
x
Reference in New Issue
Block a user