The documentation for bz2.compress for says it takes data, not a file name. Try replacing the line below: tarbz2contents = bz2.compress(open(source_file, ...
確定! 回上一頁