From f98fdd5f015b8917b54fa2beb14c184a0f631b6a Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Wed, 17 Nov 2021 07:42:04 +0000 Subject: [PATCH] Fix printing HTTP response line to stdout instead of stderr --- ia-cdx-search | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ia-cdx-search b/ia-cdx-search index 61684f1..a02b468 100755 --- a/ia-cdx-search +++ b/ia-cdx-search @@ -24,7 +24,7 @@ async def wait_first_and_print(tasks): return task = tasks.popleft() url, code, o = await task - print(f'{code} {url}') + print(f'{code} {url}', file = sys.stderr) assert o, 'got empty response' fields = o[0] assert all(len(v) == len(fields) for v in o[1:]), 'got unexpected response format'