Selaa lähdekoodia

Fix infinite loop at end of WARC

master
JustAnotherArchivist 5 vuotta sitten
vanhempi
commit
641bc7a207
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. +2
    -0
      warc-tiny

+ 2
- 0
warc-tiny Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna