nthngdy commited on
Commit
aa7470f
·
1 Parent(s): b48aa98

Update ccnews_split.py

Browse files
Files changed (1) hide show
  1. ccnews_split.py +1 -1
ccnews_split.py CHANGED
@@ -28,7 +28,7 @@ def custom_iter_archive(path_or_buf):
28
  def _iter_archive(f):
29
  stream = tarfile.open(fileobj=f, mode="r|*")
30
  print(stream)
31
- print(len(stream.getmembers()))
32
  for tarinfo in stream:
33
  file_path = tarinfo.name
34
  if not tarinfo.isreg():
 
28
  def _iter_archive(f):
29
  stream = tarfile.open(fileobj=f, mode="r|*")
30
  print(stream)
31
+ print(len(stream.getnames()))
32
  for tarinfo in stream:
33
  file_path = tarinfo.name
34
  if not tarinfo.isreg():