This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients bbayles, benjamin.peterson, da, ned.deily, serhiy.storchaka
Date 2018-05-03.07:28:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525332526.64.0.682650639539.issue33038@psf.upfronthosting.co.za>
In-reply-to
Content
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')
History
Date User Action Args
2018-05-03 07:28:46serhiy.storchakasetrecipients: + serhiy.storchaka, benjamin.peterson, ned.deily, bbayles, da
2018-05-03 07:28:46serhiy.storchakasetmessageid: <1525332526.64.0.682650639539.issue33038@psf.upfronthosting.co.za>
2018-05-03 07:28:46serhiy.storchakalinkissue33038 messages
2018-05-03 07:28:46serhiy.storchakacreate