nthngdy commited on
Commit
383c57e
·
1 Parent(s): 850b10b

Update openwebtext_split.py

Browse files
Files changed (1) hide show
  1. 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