Explorar el Código

Fix infinite loop at end of WARC

master
JustAnotherArchivist hace 5 años
padre
commit
641bc7a207
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      warc-tiny

+ 2
- 0
warc-tiny Ver fichero

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


Cargando…
Cancelar
Guardar