[issue28286] gzip guessing of mode is ambiguilous

2016-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Or maybe FutureWarning is better than DeprecationWarning. -- Added file: http://bugs.python.org/file44939/gzip_deprecate_implicit_write2.patch ___ Python tracker ___

[issue28286] gzip guessing of mode is ambiguilous

2016-09-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: gzip.GzipFile can be open in two modes: reading and writing. The mode is specified by the mode parameter, but if it is not specified or is None, the mode is determined by the mode of passed file object. The problem is that the file object can support readi