CGI POST binary file upload?

Fredrik Lundh fredrik at
Tue Dec 5 22:48:15 CET 2000

Ilariu Raducan wrote:
> In class _sockobject in the file 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, and god knows
how many other programs...


More information about the Python-list mailing list