Serhiy Storchaka <[email protected]> added the comment:
The workaround in the current 2.7 is specifying an explicit filename argument:
with tempfile.SpooledTemporaryFile() as fd:
with gzip.GzipFile(filename='', mode='wb', fileobj=fd) as gz:
gz.write(b'asdf')
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33038>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com