We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01bc5cb commit e990898Copy full SHA for e990898
1 file changed
acquire/outputs/tar.py
@@ -129,7 +129,6 @@ def write(
129
# Prevents "long reads" because it reads at max bufsize bytes at a time
130
buf = fh.read(bufsize)
131
if len(buf) < bufsize:
132
- # raise exception("unexpected end of data")
133
# PATCH; instead of raising an exception, pad the data to the desired length
134
buf += tarfile.NUL * (bufsize - len(buf))
135
self.tar.fileobj.write(buf)
@@ -138,7 +137,6 @@ def write(
138
137
139
buf = fh.read(remainder)
140
if len(buf) < remainder:
141
142
143
buf += tarfile.NUL * (remainder - len(buf))
144
0 commit comments