Update openwebtext_split.py
Browse files- openwebtext_split.py +2 -2
openwebtext_split.py
CHANGED
|
@@ -57,8 +57,8 @@ def custom_iter_archive(path_or_buf, _filter=lambda x: True):
|
|
| 57 |
if not file_path.endswith('xz'):
|
| 58 |
continue
|
| 59 |
file_obj = stream.extractfile(tarinfo)
|
| 60 |
-
|
| 61 |
-
print(type(
|
| 62 |
for j, xzinfo in enumerate(file_obj):
|
| 63 |
yield j
|
| 64 |
stream.members = []
|
|
|
|
| 57 |
if not file_path.endswith('xz'):
|
| 58 |
continue
|
| 59 |
file_obj = stream.extractfile(tarinfo)
|
| 60 |
+
decompressed = tarfile.open(file_obj=file_obj, 'r:xz')
|
| 61 |
+
print(type(decompressed))
|
| 62 |
for j, xzinfo in enumerate(file_obj):
|
| 63 |
yield j
|
| 64 |
stream.members = []
|