diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 47bc8719c35..c185fbd49eb 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -417,7 +417,13 @@ class _Stream: self.fileobj.write(self.buf) self.buf = "" if self.comptype == "gz": - self.fileobj.write(struct.pack("