File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ def write(
129129 # Prevents "long reads" because it reads at max bufsize bytes at a time
130130 buf = fh .read (bufsize )
131131 if len (buf ) < bufsize :
132- # raise exception("unexpected end of data")
133132 # PATCH; instead of raising an exception, pad the data to the desired length
134133 buf += tarfile .NUL * (bufsize - len (buf ))
135134 self .tar .fileobj .write (buf )
@@ -138,7 +137,6 @@ def write(
138137 # Prevents "long reads" because it reads at max bufsize bytes at a time
139138 buf = fh .read (remainder )
140139 if len (buf ) < remainder :
141- # raise exception("unexpected end of data")
142140 # PATCH; instead of raising an exception, pad the data to the desired length
143141 buf += tarfile .NUL * (remainder - len (buf ))
144142 self .tar .fileobj .write (buf )
You can’t perform that action at this time.
0 commit comments