# HG changeset patch # User Henry S. Thompson # Date 1773253205 0 # Node ID ceacc13bf0e71d006d63c73378f6f45188a85690 # Parent 55b155c11d8f7ab56f2fd471e2927cc92d0749b6 rework test output to read better diff -r 55b155c11d8f -r ceacc13bf0e7 lib/python/cc/warc.py --- 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()