Update openwebtext_split.py
Browse files- openwebtext_split.py +2 -2
openwebtext_split.py
CHANGED
@@ -55,8 +55,8 @@ def custom_iter_archive(path_or_buf, _filter=lambda x: True):
|
|
55 |
continue
|
56 |
if not file_path.endswith('xz'):
|
57 |
continue
|
58 |
-
file_obj = stream.
|
59 |
-
print(
|
60 |
for j, xzinfo in enumerate(file_obj):
|
61 |
f = io.BytesIO(xzinfo)
|
62 |
yield f
|
|
|
55 |
continue
|
56 |
if not file_path.endswith('xz'):
|
57 |
continue
|
58 |
+
file_obj = stream.extractfile(tarinfo)
|
59 |
+
print(file_obj.getmembers())
|
60 |
for j, xzinfo in enumerate(file_obj):
|
61 |
f = io.BytesIO(xzinfo)
|
62 |
yield f
|