109
stream = gzip.GzipFile(None, mode='w', mtime=root_mtime,
112
112
stream = open(dest.encode(osutils._fs_enc), 'w')
113
113
# gzip file is used with an explicit fileobj so that
114
114
# the basename can be stored in the gzip file rather than
118
stream = gzip.GzipFile(basename, 'w', fileobj=stream, mtime=root_mtime)
118
122
ball = tarfile.open(None, 'w|', fileobj=stream)
119
123
export_tarball(tree, ball, root, subdir, filtered=filtered,