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 methane
Recipients docs@python, methane, wolma
Date 2014-04-03.11:57:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396526226.27.0.54006365625.issue21146@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe, shutil.copyfileobj() is good.

import gzip
import shutil

with open(src, 'rb') as f_in:
    with gzip.open(dst, 'wb') as f_out:
        shutil.copyfileobj(f_in, f_out)
History
Date User Action Args
2014-04-03 11:57:06methanesetrecipients: + methane, docs@python, wolma
2014-04-03 11:57:06methanesetmessageid: <1396526226.27.0.54006365625.issue21146@psf.upfronthosting.co.za>
2014-04-03 11:57:06methanelinkissue21146 messages
2014-04-03 11:57:06methanecreate