nthngdy commited on
Commit
e1e7c5a
·
1 Parent(s): 74814db

Update openwebtext_split.py

Browse files
Files changed (1) hide show
  1. 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
- print(dir(file_obj))
59
- with tarfile.open(file_obj, 'rb') 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"):
 
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"):