File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,9 @@ def _filter(tinfo: tarfile.TarInfo, _path: PathLike):
173
173
barProg .advance (barTask , _size )
174
174
_size = tinfo .size
175
175
176
- return tarfile .data_filter (tinfo , _path )
176
+ # TODO: ideally we'd use data_filter here, but it's busted: https://github.com/python/cpython/issues/107845
177
+ # return tarfile.data_filter(tinfo, _path)
178
+ return tinfo
177
179
else :
178
180
_filter = None
179
181
@@ -215,13 +217,13 @@ def create_tarball(
215
217
216
218
_size = 0
217
219
218
- def _filter (tinfo : tarfile .TarInfo , _path : PathLike ):
220
+ def _filter (tinfo : tarfile .TarInfo ):
219
221
nonlocal _size
220
222
pathProg .update (pathTask , description = tinfo .path )
221
223
barProg .advance (barTask , _size )
222
224
_size = Path (tinfo .path ).stat ().st_size
223
225
224
- return tarfile . data_filter ( tinfo , _path )
226
+ return tinfo
225
227
else :
226
228
_filter = None
227
229
You can’t perform that action at this time.
0 commit comments