Update openwebtext_split.py
Browse files- openwebtext_split.py +1 -1
openwebtext_split.py
CHANGED
|
@@ -56,7 +56,7 @@ def custom_iter_archive(path_or_buf, _filter=lambda x: True):
|
|
| 56 |
if not file_path.endswith('xz'):
|
| 57 |
continue
|
| 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
|
|
|
|
| 56 |
if not file_path.endswith('xz'):
|
| 57 |
continue
|
| 58 |
file_obj = stream.extractfile(tarinfo)
|
| 59 |
+
with lzma.LZMAFile(file_obj, 'rb') as inner_stream:
|
| 60 |
for j, xzinfo in enumerate(inner_stream):
|
| 61 |
print(type(xzinfo))
|
| 62 |
yield xzinfo.name, xzinfo
|