CGI POST binary file upload?
fredrik at effbot.org
Tue Dec 5 22:48:15 CET 2000
Ilariu Raducan wrote:
> In class _sockobject in the file socket.py change the 'r' mode with 'rb'
> def makefile(self, mode='r', bufsize=-1):
> #MODIFIED return _fileobject(self._sock, 'rb', bufsize)
> return _fileobject(self._sock, 'rb', bufsize)
please. what's wrong with changing the *call* to the
function, instead of the function itself?
btw, your "fix" breaks SocketServer.py, and god knows
how many other programs...
More information about the Python-list