ソースを参照

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'


読み込み中…
キャンセル
保存