Mercurial > hg > cc > cirrus_work
changeset 348:ceacc13bf0e7 trim
rework test output to read better
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Wed, 11 Mar 2026 18:20:05 +0000 |
| parents | 55b155c11d8f |
| children | a8a5f07211c4 |
| files | lib/python/cc/warc.py |
| diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/python/cc/warc.py Wed Mar 11 18:09:01 2026 +0000 +++ b/lib/python/cc/warc.py Wed Mar 11 18:20:05 2026 +0000 @@ -192,15 +192,15 @@ offset: int = 0 bp: int = 0 done: bool = bl < BUFSIZE - print(0, file=sys.stderr) + print(0, file = sys.stderr, end = " ") while True: (unc, bp) = decompOneBlock(bufView, bl, bp) if unc == b"": break - print(offset + bp,unc[21:29],file=sys.stderr) + print(unc[21:29],file = sys.stderr) + print(offset + bp, file = sys.stderr, end = " ") if (not done) and (keepLen := bl - bp) < BUFMIN: # we need to shift and read more - print("shifting",file=sys.stderr) offset += bp buf[0:keepLen]=bufView[bp:bl] with memoryview(buf)[keepLen:BUFSIZE] as xBuf: @@ -209,4 +209,5 @@ if (done := (bl < BUFSIZE)): bufView = bufView[0:bl] bp = 0 + print("EOF", file = sys.stderr) f.close()
