Update openwebtext_split.py
Browse files- openwebtext_split.py +3 -5
openwebtext_split.py
CHANGED
|
@@ -55,11 +55,9 @@ def custom_iter_archive(path_or_buf, _filter=lambda x: True):
|
|
| 55 |
if not file_path.endswith('xz'):
|
| 56 |
continue
|
| 57 |
file_obj = stream.extractfile(tarinfo)
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
print(type(xzinfo))
|
| 62 |
-
yield xzinfo.name, xzinfo
|
| 63 |
stream.members = []
|
| 64 |
del stream
|
| 65 |
if hasattr(path_or_buf, "read"):
|
|
|
|
| 55 |
if not file_path.endswith('xz'):
|
| 56 |
continue
|
| 57 |
file_obj = stream.extractfile(tarinfo)
|
| 58 |
+
for j, xzinfo in enumerate(file_obj):
|
| 59 |
+
print(type(xzinfo))
|
| 60 |
+
yield xzinfo.name, xzinfo
|
|
|
|
|
|
|
| 61 |
stream.members = []
|
| 62 |
del stream
|
| 63 |
if hasattr(path_or_buf, "read"):
|