[issue10392] GZipFile crash when fileobj.mode is None
Brad Greenlee
report at bugs.python.org
Sat Nov 13 05:54:55 CET 2010
Brad Greenlee <brad at footle.org> added the comment:
GzipFile.__init__ considers mode == None to be the equivalent of undefined, and sets it to the default of 'rb'. I see fileobj.mode == None as the same thing.
That said, it is probably a bug in Django as well; I'll look into that. I still think that GzipFile should handle this gracefully.
----------
status: pending -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10392>
_______________________________________
More information about the Python-bugs-list
mailing list