Python 2.6 File Socket Shims¶
-
class
sleekxmpp.xmlstream.filesocket.
FileSocket
(sock, mode='rb', bufsize=-1, close=False)[source]¶ Create a file object wrapper for a socket to work around issues present in Python 2.6 when using sockets as file objects.
The parser for
cElementTree
requires a file, but we will be reading from the XMPP connection socket instead.