浏览代码

Fix printing HTTP response line to stdout instead of stderr

master
JustAnotherArchivist 2 年前
父节点
当前提交
f98fdd5f01
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      ia-cdx-search

+ 1
- 1
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'


正在加载...
取消
保存