INADA Naoki added the comment: 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) ---------- nosy: +naoki _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21146> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com