Преглед на файлове

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'


Зареждане…
Отказ
Запис