CGI POST binary file upload?
Fredrik Lundh
fredrik at effbot.org
Tue Dec 5 16:48:15 EST 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...
</F>
More information about the Python-list
mailing list