diff options
author | Nathan Fritz <fritz@netflint.net> | 2010-01-08 07:45:26 -0800 |
---|---|---|
committer | Nathan Fritz <fritz@netflint.net> | 2010-01-08 07:45:26 -0800 |
commit | 2193d5c962d3a05fa81ca7285ef1463d2d471ba5 (patch) | |
tree | 7997bdb8c89621daf8b3506ce9d693cc2beefdf3 /sleekxmpp/xmlstream/filesocket.py | |
parent | 13d7328886aab759153ed83c051320a21bf63e40 (diff) | |
download | slixmpp-2193d5c962d3a05fa81ca7285ef1463d2d471ba5.tar.gz slixmpp-2193d5c962d3a05fa81ca7285ef1463d2d471ba5.tar.bz2 slixmpp-2193d5c962d3a05fa81ca7285ef1463d2d471ba5.tar.xz slixmpp-2193d5c962d3a05fa81ca7285ef1463d2d471ba5.zip |
added filesocket.py for 2.6 compatibility
Diffstat (limited to 'sleekxmpp/xmlstream/filesocket.py')
-rw-r--r-- | sleekxmpp/xmlstream/filesocket.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/filesocket.py b/sleekxmpp/xmlstream/filesocket.py new file mode 100644 index 00000000..92d61e61 --- /dev/null +++ b/sleekxmpp/xmlstream/filesocket.py @@ -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 |