Reputation: 1956
I'm porting some code that runs on Python 2.5 to Python 3.1. A couple of classes subclass the socket._fileobject:
class X(socket._fileobject):
....
Is there an equivalent to socket._fileobject in Python 3.1? A quick scan of the source code doesn't turn up anything useful. Thanks!
Upvotes: 2
Views: 2665
Reputation: 172269
Python 3 uses SocketIO instead of _fileobject in the makefile() method, so that's probably the way to go.
Upvotes: 3