Ver a proveniência

Fix infinite loop at end of WARC

master
JustAnotherArchivist há 5 anos
ascendente
cometimento
641bc7a207
1 ficheiros alterados com 2 adições e 0 eliminações
  1. +2
    -0
      warc-tiny

+ 2
- 0
warc-tiny Ver ficheiro

@@ -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
Guardar