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 |
-
print(file_obj.read())
|
| 60 |
for j, xzinfo in enumerate(file_obj):
|
| 61 |
f = io.BytesIO(xzinfo)
|
| 62 |
yield f
|
|
|
|
| 56 |
if not file_path.endswith('xz'):
|
| 57 |
continue
|
| 58 |
file_obj = stream.extractfile(tarinfo)
|
| 59 |
+
print(file_obj.read().decode())
|
| 60 |
for j, xzinfo in enumerate(file_obj):
|
| 61 |
f = io.BytesIO(xzinfo)
|
| 62 |
yield f
|