Ver código fonte

Fix infinite loop at end of WARC

master
JustAnotherArchivist 5 anos atrás
pai
commit
641bc7a207
1 arquivos alterados com 2 adições e 0 exclusões
  1. +2
    -0
      warc-tiny

+ 2
- 0
warc-tiny Ver arquivo

@@ -80,6 +80,8 @@ def iter_warc(f):
buf = buf + fp.read(4096)
except EOFError:
break
if not buf:
break
if not buf:
break
warcHeaderBuf, buf = buf.split(b'\r\n\r\n', 1)


Carregando…
Cancelar
Salvar