Update openwebtext_split.py
Browse files- openwebtext_split.py +2 -4
openwebtext_split.py
CHANGED
|
@@ -58,10 +58,8 @@ def custom_iter_archive(path_or_buf, _filter=lambda x: True):
|
|
| 58 |
file_obj = stream.extractfile(tarinfo)
|
| 59 |
with lzma.LZMAFile(file_obj) as inner_stream:
|
| 60 |
for j, xzinfo in enumerate(inner_stream):
|
| 61 |
-
print(
|
| 62 |
-
|
| 63 |
-
continue
|
| 64 |
-
yield xzinfo.name, inner_stream.extractfile(xzinfo)
|
| 65 |
stream.members = []
|
| 66 |
del stream
|
| 67 |
if hasattr(path_or_buf, "read"):
|
|
|
|
| 58 |
file_obj = stream.extractfile(tarinfo)
|
| 59 |
with lzma.LZMAFile(file_obj) as inner_stream:
|
| 60 |
for j, xzinfo in enumerate(inner_stream):
|
| 61 |
+
print(type(xzinfo))
|
| 62 |
+
yield xzinfo.name, xzinfo
|
|
|
|
|
|
|
| 63 |
stream.members = []
|
| 64 |
del stream
|
| 65 |
if hasattr(path_or_buf, "read"):
|